5c370c0b2a
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
102 lines
1.6 KiB
Nix
102 lines
1.6 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.34.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-E1o7eaaGsxMrc/IERQrW6IneBPM0nWkpJeCfDiHnS1I=";
|
|
};
|
|
|
|
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 = "The fastest way to build custom ML tools";
|
|
mainProgram = "streamlit";
|
|
maintainers = with maintainers; [ natsukium yrashk ];
|
|
license = licenses.asl20;
|
|
};
|
|
}
|