depot/third_party/nixpkgs/pkgs/applications/science/machine-learning/streamlit/default.nix
Default email 4d5a95770c Project import generated by Copybara.
GitOrigin-RevId: 3c5319ad3aa51551182ac82ea17ab1c6b0f0df89
2023-03-04 15:14:45 +03:00

71 lines
1.1 KiB
Nix
Executable file

{ lib
, altair
, blinker
, buildPythonApplication
, cachetools
, click
, fetchPypi
, gitpython
, importlib-metadata
, jinja2
, pillow
, protobuf3
, pyarrow
, pydeck
, pympler
, requests
, rich
, semver
, setuptools
, toml
, tornado
, tzlocal
, validators
, watchdog
}:
buildPythonApplication rec {
pname = "streamlit";
version = "1.18.1";
format = "wheel"; # source currently requires pipenv
src = fetchPypi {
inherit pname version format;
hash = "sha256-lO2QfM/G+4M55f8JCZBwk10SkMp4gXb68KncHm90k7g=";
};
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;
};
}