2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
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,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
buildPythonPackage rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "streamlit";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "1.38.0";
|
2023-11-16 04:20:00 +00:00
|
|
|
pyproject = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchPypi {
|
2023-11-16 04:20:00 +00:00
|
|
|
inherit pname version;
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-xL82s++HFJntRZRXSDRYMRP5Pwd90wNdUW0pV4byrWM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
build-system = [
|
2023-11-16 04:20:00 +00:00
|
|
|
setuptools
|
2024-04-21 15:54:59 +00:00
|
|
|
];
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
pythonRelaxDeps = [
|
|
|
|
"packaging"
|
|
|
|
"tenacity"
|
|
|
|
];
|
2023-10-09 19:29:22 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
dependencies = [
|
2022-01-03 16:56:52 +00:00
|
|
|
altair
|
|
|
|
blinker
|
|
|
|
cachetools
|
2022-08-21 13:32:41 +00:00
|
|
|
click
|
2022-12-17 10:02:37 +00:00
|
|
|
gitpython
|
2022-08-21 13:32:41 +00:00
|
|
|
importlib-metadata
|
2023-08-10 07:59:29 +00:00
|
|
|
numpy
|
|
|
|
packaging
|
|
|
|
pandas
|
2022-01-03 16:56:52 +00:00
|
|
|
pillow
|
2023-10-09 19:29:22 +00:00
|
|
|
protobuf
|
2022-01-03 16:56:52 +00:00
|
|
|
pyarrow
|
|
|
|
pydeck
|
|
|
|
pympler
|
2023-08-10 07:59:29 +00:00
|
|
|
python-dateutil
|
2022-01-03 16:56:52 +00:00
|
|
|
requests
|
2022-08-21 13:32:41 +00:00
|
|
|
rich
|
2023-07-15 17:15:38 +00:00
|
|
|
tenacity
|
2022-01-03 16:56:52 +00:00
|
|
|
toml
|
2023-10-09 19:29:22 +00:00
|
|
|
tornado
|
2023-08-10 07:59:29 +00:00
|
|
|
typing-extensions
|
2022-01-03 16:56:52 +00:00
|
|
|
tzlocal
|
|
|
|
validators
|
2024-09-26 11:04:55 +00:00
|
|
|
] ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [ watchdog ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
# pypi package does not include the tests, but cannot be built with fetchFromGitHub
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "streamlit" ];
|
2023-07-15 17:15:38 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
postInstall = ''
|
2022-12-02 08:20:57 +00:00
|
|
|
rm $out/bin/streamlit.cmd # remove windows helper
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://streamlit.io/";
|
2023-07-15 17:15:38 +00:00
|
|
|
changelog = "https://github.com/streamlit/streamlit/releases/tag/${version}";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Fastest way to build custom ML tools";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "streamlit";
|
2024-06-05 15:53:02 +00:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
natsukium
|
|
|
|
yrashk
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|