{ # 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.11.1"; format = "wheel"; # source currently requires pipenv src = fetchPypi { inherit pname version format; hash = "sha256-+GGuL3UngPDgLOGx9QXUdRJsTswhTg7d6zuvhpp0Mo0="; }; 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; }; }