depot/third_party/nixpkgs/pkgs/development/python-modules/streamlit/default.nix

99 lines
1.6 KiB
Nix
Raw Normal View History

{
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.37.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-Rj73KLoh504FEi43BOivZEp727WCLigbja9KCkh2GHk=";
};
nativeBuildInputs = [
setuptools
];
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;
};
}