5083ee08a2
GitOrigin-RevId: 10ecda252ce1b3b1d6403caeadbcc8f30d5ab796
75 lines
1.1 KiB
Nix
Executable file
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.13.0";
|
|
format = "wheel"; # source currently requires pipenv
|
|
|
|
src = fetchPypi {
|
|
inherit pname version format;
|
|
hash = "sha256-MjGm9CT4p/Nl3J5G1Pu2ajY0/VcMdHabimn3ktkoXTo=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|