depot/third_party/nixpkgs/pkgs/applications/science/machine-learning/streamlit/default.nix
Default email 7d542a9f98 Project import generated by Copybara.
GitOrigin-RevId: b72b8b94cf0c012b0252a9100a636cad69696666
2022-12-02 08:20:57 +00:00

75 lines
1.1 KiB
Nix
Executable file

{
# 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;
};
}