depot/third_party/nixpkgs/pkgs/development/python-modules/streamlit/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

100 lines
1.7 KiB
Nix

{
lib,
stdenv,
altair,
blinker,
buildPythonPackage,
cachetools,
click,
fetchPypi,
gitpython,
importlib-metadata,
numpy,
packaging,
pandas,
pillow,
protobuf,
pyarrow,
pydeck,
pympler,
python-dateutil,
pythonOlder,
pythonRelaxDepsHook,
setuptools,
requests,
rich,
tenacity,
toml,
tornado,
typing-extensions,
tzlocal,
validators,
watchdog,
}:
buildPythonPackage rec {
pname = "streamlit";
version = "1.35.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-Z51Vu2GJdD9gar8GlmI98L/SI6bQyNlrjWBnjUiR0tY=";
};
nativeBuildInputs = [
setuptools
pythonRelaxDepsHook
];
pythonRelaxDeps = [ "packaging" ];
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 = "Fastest way to build custom ML tools";
mainProgram = "streamlit";
maintainers = with maintainers; [
natsukium
yrashk
];
license = licenses.asl20;
};
}