@@ -0,0 +1,34 @@
1+{ lib, buildPythonApplication, fetchPypi
2+ , altair, astor, base58, blinker, boto3, botocore, click, enum-compat
3+ , future, pillow, protobuf, requests, toml, tornado, tzlocal, validators, watchdog
4+ , jinja2, setuptools
5+}:
6+
7+buildPythonApplication rec {
8+ pname = "streamlit";
9+ version = "0.49.0";
10+ format = "wheel"; # the only distribution available
11+
12+ src = fetchPypi {
13+ inherit pname version format;
14+ sha256 = "1g12z93yh85vcgf3g9banshllr5fhz8i4f9llymcnk6mafvcsiv7";
15+ };
16+
17+ propagatedBuildInputs = [
18+ altair astor base58 blinker boto3 botocore click enum-compat
19+ future pillow protobuf requests toml tornado tzlocal validators watchdog
20+ jinja2 setuptools
21+ ];
22+
23+ postInstall = ''
24+ rm $out/bin/streamlit.cmd # remove windows helper
25+ '';
26+
27+ meta = with lib; {
28+ homepage = https://streamlit.io/;
29+ description = "The fastest way to build custom ML tools";
30+ maintainers = with maintainers; [ yrashk ];
31+ license = licenses.asl20;
32+ };
33+
34+}