2022-12-17 10:02:37 +00:00
|
|
|
{ lib
|
2023-08-10 07:59:29 +00:00
|
|
|
, stdenv
|
2022-12-17 10:02:37 +00:00
|
|
|
, altair
|
2022-12-02 08:20:57 +00:00
|
|
|
, blinker
|
2023-08-10 07:59:29 +00:00
|
|
|
, buildPythonPackage
|
2022-12-02 08:20:57 +00:00
|
|
|
, cachetools
|
2022-12-17 10:02:37 +00:00
|
|
|
, click
|
|
|
|
, fetchPypi
|
|
|
|
, gitpython
|
2022-12-02 08:20:57 +00:00
|
|
|
, importlib-metadata
|
2023-08-10 07:59:29 +00:00
|
|
|
, numpy
|
|
|
|
, packaging
|
|
|
|
, pandas
|
2022-12-02 08:20:57 +00:00
|
|
|
, pillow
|
2023-10-09 19:29:22 +00:00
|
|
|
, protobuf
|
2022-12-02 08:20:57 +00:00
|
|
|
, pyarrow
|
|
|
|
, pydeck
|
|
|
|
, pympler
|
2023-08-10 07:59:29 +00:00
|
|
|
, python-dateutil
|
|
|
|
, pythonOlder
|
2024-04-21 15:54:59 +00:00
|
|
|
, pythonRelaxDepsHook
|
2023-11-16 04:20:00 +00:00
|
|
|
, setuptools
|
2022-12-02 08:20:57 +00:00
|
|
|
, requests
|
|
|
|
, rich
|
2023-07-15 17:15:38 +00:00
|
|
|
, tenacity
|
2022-12-02 08:20:57 +00:00
|
|
|
, toml
|
2023-10-09 19:29:22 +00:00
|
|
|
, tornado
|
2023-08-10 07:59:29 +00:00
|
|
|
, typing-extensions
|
2022-12-02 08:20:57 +00:00
|
|
|
, 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-05-15 15:35:15 +00:00
|
|
|
version = "1.34.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-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-E1o7eaaGsxMrc/IERQrW6IneBPM0nWkpJeCfDiHnS1I=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
2024-04-21 15:54:59 +00:00
|
|
|
pythonRelaxDepsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonRelaxDeps = [
|
|
|
|
"packaging"
|
2023-10-09 19:29:22 +00:00
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [
|
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
|
2023-08-10 07:59:29 +00:00
|
|
|
] ++ lib.optionals (!stdenv.isDarwin) [
|
2022-01-03 16:56:52 +00:00
|
|
|
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;
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"streamlit"
|
|
|
|
];
|
|
|
|
|
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}";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "The fastest way to build custom ML tools";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "streamlit";
|
2023-08-10 07:59:29 +00:00
|
|
|
maintainers = with maintainers; [ natsukium yrashk ];
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|