2022-01-03 16:56:52 +00:00
|
|
|
{
|
|
|
|
# Nix
|
|
|
|
lib,
|
|
|
|
buildPythonApplication,
|
|
|
|
fetchPypi,
|
|
|
|
|
|
|
|
# Build inputs
|
|
|
|
altair,
|
|
|
|
blinker,
|
|
|
|
click,
|
|
|
|
cachetools,
|
|
|
|
GitPython,
|
2022-08-21 13:32:41 +00:00
|
|
|
importlib-metadata,
|
2022-01-03 16:56:52 +00:00
|
|
|
jinja2,
|
|
|
|
pillow,
|
|
|
|
pyarrow,
|
|
|
|
pydeck,
|
|
|
|
pympler,
|
|
|
|
protobuf,
|
|
|
|
requests,
|
2022-08-21 13:32:41 +00:00
|
|
|
rich,
|
|
|
|
semver,
|
2022-01-03 16:56:52 +00:00
|
|
|
setuptools,
|
|
|
|
toml,
|
|
|
|
tornado,
|
|
|
|
tzlocal,
|
|
|
|
validators,
|
|
|
|
watchdog,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
2022-08-21 13:32:41 +00:00
|
|
|
buildPythonApplication rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "streamlit";
|
2022-08-21 13:32:41 +00:00
|
|
|
version = "1.11.1";
|
|
|
|
format = "wheel"; # source currently requires pipenv
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version format;
|
2022-08-21 13:32:41 +00:00
|
|
|
hash = "sha256-+GGuL3UngPDgLOGx9QXUdRJsTswhTg7d6zuvhpp0Mo0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2022-01-03 16:56:52 +00:00
|
|
|
altair
|
|
|
|
blinker
|
|
|
|
cachetools
|
2022-08-21 13:32:41 +00:00
|
|
|
click
|
2022-01-03 16:56:52 +00:00
|
|
|
GitPython
|
2022-08-21 13:32:41 +00:00
|
|
|
importlib-metadata
|
2022-01-03 16:56:52 +00:00
|
|
|
jinja2
|
|
|
|
pillow
|
|
|
|
protobuf
|
|
|
|
pyarrow
|
|
|
|
pydeck
|
|
|
|
pympler
|
|
|
|
requests
|
2022-08-21 13:32:41 +00:00
|
|
|
rich
|
|
|
|
semver
|
2022-01-03 16:56:52 +00:00
|
|
|
setuptools
|
|
|
|
toml
|
|
|
|
tornado
|
|
|
|
tzlocal
|
|
|
|
validators
|
|
|
|
watchdog
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|