9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
81 lines
1.3 KiB
Nix
Executable file
81 lines
1.3 KiB
Nix
Executable file
{ lib
|
|
, altair
|
|
, blinker
|
|
, buildPythonApplication
|
|
, cachetools
|
|
, click
|
|
, fetchPypi
|
|
, gitpython
|
|
, importlib-metadata
|
|
, jinja2
|
|
, pillow
|
|
, protobuf3
|
|
, pyarrow
|
|
, pydeck
|
|
, pympler
|
|
, requests
|
|
, rich
|
|
, semver
|
|
, setuptools
|
|
, tenacity
|
|
, toml
|
|
, tornado
|
|
, tzlocal
|
|
, validators
|
|
, watchdog
|
|
}:
|
|
|
|
buildPythonApplication rec {
|
|
pname = "streamlit";
|
|
version = "1.24.0";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version format;
|
|
hash = "sha256-NSX6zpTHh5JzPFbWOja0iEUVDjume7UKGa20xZdagiU=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
altair
|
|
blinker
|
|
cachetools
|
|
click
|
|
gitpython
|
|
importlib-metadata
|
|
jinja2
|
|
pillow
|
|
protobuf3
|
|
pyarrow
|
|
pydeck
|
|
pympler
|
|
requests
|
|
rich
|
|
semver
|
|
setuptools
|
|
tenacity
|
|
toml
|
|
tornado
|
|
tzlocal
|
|
validators
|
|
watchdog
|
|
];
|
|
|
|
# pypi package does not include the tests, but cannot be built with fetchFromGitHub
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"streamlit"
|
|
];
|
|
|
|
postInstall = ''
|
|
rm $out/bin/streamlit.cmd # remove windows helper
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://streamlit.io/";
|
|
changelog = "https://github.com/streamlit/streamlit/releases/tag/${version}";
|
|
description = "The fastest way to build custom ML tools";
|
|
maintainers = with maintainers; [ yrashk ];
|
|
license = licenses.asl20;
|
|
};
|
|
}
|