evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / streamlit / default.nix
blobd3862776309a17ff7e7159fc0816d021afb1c159
2   lib,
3   stdenv,
4   altair,
5   blinker,
6   buildPythonPackage,
7   cachetools,
8   click,
9   fetchPypi,
10   gitpython,
11   importlib-metadata,
12   numpy,
13   packaging,
14   pandas,
15   pillow,
16   protobuf,
17   pyarrow,
18   pydeck,
19   pympler,
20   python-dateutil,
21   pythonOlder,
22   setuptools,
23   requests,
24   rich,
25   tenacity,
26   toml,
27   tornado,
28   typing-extensions,
29   tzlocal,
30   validators,
31   watchdog,
34 buildPythonPackage rec {
35   pname = "streamlit";
36   version = "1.39.0";
37   pyproject = true;
39   disabled = pythonOlder "3.8";
41   src = fetchPypi {
42     inherit pname version;
43     hash = "sha256-/vneeYPE7mXAjoVgfX/8y1awBIKxBB+mL5DkgV053zo=";
44   };
46   build-system = [
47     setuptools
48   ];
50   pythonRelaxDeps = [
51     "packaging"
52     "tenacity"
53   ];
55   dependencies = [
56     altair
57     blinker
58     cachetools
59     click
60     gitpython
61     importlib-metadata
62     numpy
63     packaging
64     pandas
65     pillow
66     protobuf
67     pyarrow
68     pydeck
69     pympler
70     python-dateutil
71     requests
72     rich
73     tenacity
74     toml
75     tornado
76     typing-extensions
77     tzlocal
78     validators
79   ] ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [ watchdog ];
81   # pypi package does not include the tests, but cannot be built with fetchFromGitHub
82   doCheck = false;
84   pythonImportsCheck = [ "streamlit" ];
86   postInstall = ''
87     rm $out/bin/streamlit.cmd # remove windows helper
88   '';
90   meta = with lib; {
91     homepage = "https://streamlit.io/";
92     changelog = "https://github.com/streamlit/streamlit/releases/tag/${version}";
93     description = "Fastest way to build custom ML tools";
94     mainProgram = "streamlit";
95     maintainers = with maintainers; [
96       natsukium
97       yrashk
98     ];
99     license = licenses.asl20;
100   };