depot/third_party/nixpkgs/pkgs/applications/science/machine-learning/streamlit/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

81 lines
1.3 KiB
Nix
Executable file

{ lib
, altair
, blinker
, buildPythonApplication
, cachetools
, click
, fetchPypi
, gitpython
, importlib-metadata
, jinja2
, pillow
, protobuf3
, pyarrow
, pydeck
, pympler
, requests
, rich
, semver
, setuptools
, tenacity
, toml
, tornado
, tzlocal
, validators
, watchdog
}:
buildPythonApplication rec {
pname = "streamlit";
version = "1.24.0";
format = "setuptools";
src = fetchPypi {
inherit pname version format;
hash = "sha256-NSX6zpTHh5JzPFbWOja0iEUVDjume7UKGa20xZdagiU=";
};
propagatedBuildInputs = [
altair
blinker
cachetools
click
gitpython
importlib-metadata
jinja2
pillow
protobuf3
pyarrow
pydeck
pympler
requests
rich
semver
setuptools
tenacity
toml
tornado
tzlocal
validators
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";
maintainers = with maintainers; [ yrashk ];
license = licenses.asl20;
};
}