anki-bin: 24.06.3 -> 24.11 (#360722)
[NixPkgs.git] / pkgs / development / python-modules / growattserver / default.nix
blobad142b6c6cae85226ddab548ec8083b4eefeea61
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   pythonOlder,
6   requests,
7   setuptools,
8 }:
10 buildPythonPackage rec {
11   pname = "growattserver";
12   version = "1.6.0";
13   pyproject = true;
15   disabled = pythonOlder "3.7";
17   src = fetchFromGitHub {
18     owner = "indykoning";
19     repo = "PyPi_GrowattServer";
20     rev = "refs/tags/${version}";
21     hash = "sha256-P7HZPmDUQM3DuaGSkAHc0jQBGeurS+KgtdwT7ZJ/8q8=";
22   };
24   nativeBuildInputs = [ setuptools ];
26   propagatedBuildInputs = [ requests ];
28   # Project has no tests
29   doCheck = false;
31   pythonImportsCheck = [ "growattServer" ];
33   meta = with lib; {
34     description = "Python package to retrieve information from Growatt units";
35     homepage = "https://github.com/indykoning/PyPi_GrowattServer";
36     changelog = "https://github.com/indykoning/PyPi_GrowattServer/releases/tag/${version}";
37     license = licenses.mit;
38     maintainers = with maintainers; [ fab ];
39   };