nixpkgs/pkgs/applications/science/machine-learning/streamlit/default.nix
2022-12-24 04:53:42 +00:00

72 lines
1.1 KiB
Nix
Executable File

{ lib
, altair
, blinker
, buildPythonApplication
, cachetools
, click
, fetchPypi
, gitpython
, importlib-metadata
, jinja2
, pillow
, protobuf3
, pyarrow
, pydeck
, pympler
, requests
, rich
, semver
, setuptools
, toml
, tornado
, tzlocal
, validators
, watchdog
}:
buildPythonApplication rec {
pname = "streamlit";
version = "1.16.0";
format = "wheel"; # source currently requires pipenv
src = fetchPypi {
inherit pname version format;
hash = "sha256-TBNWIe3m646dbnOMxUltkNZr23g0Dqsestvxl4zHr4A=";
};
propagatedBuildInputs = [
altair
blinker
cachetools
click
gitpython
importlib-metadata
jinja2
pillow
protobuf3
pyarrow
pydeck
pympler
requests
rich
semver
setuptools
toml
tornado
tzlocal
validators
watchdog
];
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;
};
}