depot/third_party/nixpkgs/pkgs/applications/science/machine-learning/streamlit/default.nix

76 lines
1.1 KiB
Nix
Raw Normal View History

{
# Nix
lib
, buildPythonApplication
, fetchPypi
, # Build inputs
altair
, blinker
, click
, cachetools
, GitPython
, importlib-metadata
, jinja2
, pillow
, pyarrow
, pydeck
, pympler
, protobuf3
, requests
, rich
, semver
, setuptools
, toml
, tornado
, tzlocal
, validators
, watchdog
,
}:
buildPythonApplication rec {
pname = "streamlit";
version = "1.15.0";
format = "wheel"; # source currently requires pipenv
src = fetchPypi {
inherit pname version format;
hash = "sha256-QtBr3INWBwCBab+FzmvzrjGjwVVHC8NCET9wtRVeVbc=";
};
propagatedBuildInputs = [
altair
blinker
cachetools
click
GitPython
importlib-metadata
jinja2
pillow
protobuf3
pyarrow
pydeck
pympler
requests
rich
semver
setuptools
toml
tornado
tzlocal
validators
watchdog
];
postInstall = ''
rm $out/bin/streamlit.cmd # remove windows helper
'';
meta = with lib; {
homepage = "https://streamlit.io/";
description = "The fastest way to build custom ML tools";
maintainers = with maintainers; [ yrashk ];
license = licenses.asl20;
};
}