diff options
author | Yurii Rashkovskii <yrashk@gmail.com> | 2019-10-10 20:09:26 +0700 |
---|---|---|
committer | Jon <jonringer@users.noreply.github.com> | 2019-11-06 11:01:06 -0800 |
commit | 2e52f98ddbe9ddd91f65f8df471d84e1e4077bdf (patch) | |
tree | a06b2c5684f7a10dc1031213599efb0edba9c28b /pkgs | |
parent | 874201a86034c4074540eb033bfafeb35735562d (diff) | |
download | nixpkgs-2e52f98ddbe9ddd91f65f8df471d84e1e4077bdf.tar nixpkgs-2e52f98ddbe9ddd91f65f8df471d84e1e4077bdf.tar.gz nixpkgs-2e52f98ddbe9ddd91f65f8df471d84e1e4077bdf.tar.bz2 nixpkgs-2e52f98ddbe9ddd91f65f8df471d84e1e4077bdf.tar.lz nixpkgs-2e52f98ddbe9ddd91f65f8df471d84e1e4077bdf.tar.xz nixpkgs-2e52f98ddbe9ddd91f65f8df471d84e1e4077bdf.tar.zst nixpkgs-2e52f98ddbe9ddd91f65f8df471d84e1e4077bdf.zip |
streamlit: init at 0.49.0
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/applications/science/machine-learning/streamlit/default.nix | 34 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/applications/science/machine-learning/streamlit/default.nix b/pkgs/applications/science/machine-learning/streamlit/default.nix new file mode 100644 index 00000000000..f3d142739b8 --- /dev/null +++ b/pkgs/applications/science/machine-learning/streamlit/default.nix @@ -0,0 +1,34 @@ +{ lib, buildPythonApplication, fetchPypi + , altair, astor, base58, blinker, boto3, botocore, click, enum-compat + , future, pillow, protobuf, requests, toml, tornado, tzlocal, validators, watchdog + , jinja2, setuptools +}: + +buildPythonApplication rec { + pname = "streamlit"; + version = "0.49.0"; + format = "wheel"; # the only distribution available + + src = fetchPypi { + inherit pname version format; + sha256 = "1g12z93yh85vcgf3g9banshllr5fhz8i4f9llymcnk6mafvcsiv7"; + }; + + propagatedBuildInputs = [ + altair astor base58 blinker boto3 botocore click enum-compat + future pillow protobuf requests toml tornado tzlocal validators watchdog + jinja2 setuptools + ]; + + postInstall = '' + rm $out/bin/streamlit.cmd # remove windows helper + ''; + + meta = with lib; { + homepage = https://streamlit.io/; + description = "The fastest way to build custom ML tools"; + maintainers = with maintainers; [ yrashk ]; + license = licenses.asl20; + }; + +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e0a6b21a162..83a183e3671 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -22900,6 +22900,8 @@ in ffmpeg = ffmpeg_2; }; + streamlit = python3Packages.callPackage ../applications/science/machine-learning/streamlit { }; + stuntrally = callPackage ../games/stuntrally { ogre = ogre1_9; mygui = mygui.override { |