2022-01-03 16:56:52 +00:00
|
|
|
{
|
|
|
|
# Nix
|
2022-12-02 08:20:57 +00:00
|
|
|
lib
|
|
|
|
, buildPythonApplication
|
|
|
|
, fetchPypi
|
|
|
|
, # Build inputs
|
|
|
|
altair
|
|
|
|
, blinker
|
|
|
|
, click
|
|
|
|
, cachetools
|
|
|
|
, GitPython
|
|
|
|
, importlib-metadata
|
|
|
|
, jinja2
|
|
|
|
, pillow
|
|
|
|
, pyarrow
|
|
|
|
, pydeck
|
|
|
|
, pympler
|
|
|
|
, protobuf3
|
|
|
|
, requests
|
|
|
|
, rich
|
|
|
|
, semver
|
|
|
|
, 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-12-02 08:20:57 +00:00
|
|
|
version = "1.15.0";
|
|
|
|
format = "wheel"; # source currently requires pipenv
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version format;
|
2022-12-02 08:20:57 +00:00
|
|
|
hash = "sha256-QtBr3INWBwCBab+FzmvzrjGjwVVHC8NCET9wtRVeVbc=";
|
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
|
2022-12-02 08:20:57 +00:00
|
|
|
protobuf3
|
2022-01-03 16:56:52 +00:00
|
|
|
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 = ''
|
2022-12-02 08:20:57 +00:00
|
|
|
rm $out/bin/streamlit.cmd # remove windows helper
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://streamlit.io/";
|
|
|
|
description = "The fastest way to build custom ML tools";
|
|
|
|
maintainers = with maintainers; [ yrashk ];
|
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|