depot/third_party/nixpkgs/pkgs/applications/science/machine-learning/streamlit/default.nix
Default email b450903751 Project import generated by Copybara.
GitOrigin-RevId: 74a1793c659d09d7cf738005308b1f86c90cb59b
2022-09-09 16:08:57 +02: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,
protobuf,
requests,
rich,
semver,
setuptools,
toml,
tornado,
tzlocal,
validators,
watchdog,
}:
buildPythonApplication rec {
pname = "streamlit";
version = "1.12.2";
format = "wheel"; # source currently requires pipenv
src = fetchPypi {
inherit pname version format;
hash = "sha256-xW0Hdf6zkRb/kKiwHuFb4nIS7lCruIlDYHIF0m0dmSM=";
};
propagatedBuildInputs = [
altair
blinker
cachetools
click
GitPython
importlib-metadata
jinja2
pillow
protobuf
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;
};
}