Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / growattserver / default.nix
blob1cd8d8e735d4b53ac9a1787e4ee881a29124d777
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pythonOlder
5 , requests
6 , setuptools
7 }:
9 buildPythonPackage rec {
10   pname = "growattserver";
11   version = "1.5.0";
12   pyproject = true;
14   disabled = pythonOlder "3.7";
16   src = fetchFromGitHub {
17     owner = "indykoning";
18     repo = "PyPi_GrowattServer";
19     rev = "refs/tags/${version}";
20     hash = "sha256-ATxXjIF5QRsdLuXZCOWMwvbBzawrhlYZ+wodITz36sE=";
21   };
23   nativeBuildInputs = [
24     setuptools
25   ];
27   propagatedBuildInputs = [
28     requests
29   ];
31   # Project has no tests
32   doCheck = false;
34   pythonImportsCheck = [
35     "growattServer"
36   ];
38   meta = with lib; {
39     description = "Python package to retrieve information from Growatt units";
40     homepage = "https://github.com/indykoning/PyPi_GrowattServer";
41     changelog = "https://github.com/indykoning/PyPi_GrowattServer/releases/tag/${version}";
42     license = licenses.mit;
43     maintainers = with maintainers; [ fab ];
44   };