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

97 lines
1.6 KiB
Nix

{
lib,
stdenv,
altair,
anyio,
blinker,
buildPythonPackage,
cachetools,
click,
fetchPypi,
gitpython,
httptools,
itsdangerous,
numpy,
packaging,
pandas,
pillow,
protobuf,
pyarrow,
pydeck,
python-multipart,
requests,
rich,
setuptools,
starlette,
tenacity,
toml,
tornado,
typing-extensions,
uvicorn,
watchdog,
websockets,
}:
buildPythonPackage (finalAttrs: {
pname = "streamlit";
version = "1.58.0";
pyproject = true;
src = fetchPypi {
inherit (finalAttrs) pname version;
hash = "sha256-eKIucIWwU6985UREK/S2cHceaMUJuhvaoFa6Bwj0nD0=";
};
build-system = [ setuptools ];
pythonRelaxDeps = [
"packaging"
"protobuf"
];
dependencies = [
altair
anyio
blinker
cachetools
click
gitpython
httptools
itsdangerous
numpy
packaging
pandas
pillow
protobuf
pyarrow
pydeck
python-multipart
requests
rich
starlette
tenacity
toml
tornado
typing-extensions
uvicorn
websockets
]
++ lib.optionals (!stdenv.hostPlatform.isDarwin) [ watchdog ];
# pypi package does not include the tests, but cannot be built with fetchFromGitHub
doCheck = false;
pythonImportsCheck = [ "streamlit" ];
meta = {
homepage = "https://streamlit.io/";
changelog = "https://github.com/streamlit/streamlit/releases/tag/${finalAttrs.version}";
description = "Fastest way to build custom ML tools";
mainProgram = "streamlit";
maintainers = with lib.maintainers; [
natsukium
yrashk
];
license = lib.licenses.asl20;
};
})