c7cb07f092
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
95 lines
1.5 KiB
Nix
95 lines
1.5 KiB
Nix
{ lib
|
|
, stdenv
|
|
, altair
|
|
, blinker
|
|
, buildPythonPackage
|
|
, cachetools
|
|
, click
|
|
, fetchPypi
|
|
, gitpython
|
|
, importlib-metadata
|
|
, numpy
|
|
, packaging
|
|
, pandas
|
|
, pillow
|
|
, protobuf
|
|
, pyarrow
|
|
, pydeck
|
|
, pympler
|
|
, python-dateutil
|
|
, pythonOlder
|
|
, setuptools
|
|
, requests
|
|
, rich
|
|
, tenacity
|
|
, toml
|
|
, tornado
|
|
, typing-extensions
|
|
, tzlocal
|
|
, validators
|
|
, watchdog
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "streamlit";
|
|
version = "1.31.1";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-38Q8qFtLTDHQl8J7mDuMzJYCIq2QeGKysvtN3wTFD9w=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
altair
|
|
blinker
|
|
cachetools
|
|
click
|
|
gitpython
|
|
importlib-metadata
|
|
numpy
|
|
packaging
|
|
pandas
|
|
pillow
|
|
protobuf
|
|
pyarrow
|
|
pydeck
|
|
pympler
|
|
python-dateutil
|
|
requests
|
|
rich
|
|
tenacity
|
|
toml
|
|
tornado
|
|
typing-extensions
|
|
tzlocal
|
|
validators
|
|
] ++ lib.optionals (!stdenv.isDarwin) [
|
|
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; [ natsukium yrashk ];
|
|
license = licenses.asl20;
|
|
};
|
|
}
|