depot/third_party/nixpkgs/pkgs/applications/science/machine-learning/streamlit/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

34 lines
974 B
Nix

{ lib, buildPythonApplication, fetchPypi
, altair, astor, base58, blinker, boto3, botocore, click, enum-compat
, future, pillow, protobuf, requests, toml, tornado, tzlocal, validators, watchdog
, jinja2, setuptools
}:
buildPythonApplication rec {
pname = "streamlit";
version = "0.50.2";
format = "wheel"; # the only distribution available
src = fetchPypi {
inherit pname version format;
sha256 = "1wymv7qckafs0p2jdjlxjaf1xrhm3iyd185jkldanbb0na5n3ndz";
};
propagatedBuildInputs = [
altair astor base58 blinker boto3 botocore click enum-compat
future pillow protobuf requests toml tornado tzlocal validators watchdog
jinja2 setuptools
];
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;
};
}