biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / sunweg / default.nix
blob0880a5b11d75bd808077becc4f40c84b097026ec
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   pythonOlder,
6   python-dateutil,
7   requests,
8   setuptools,
9 }:
11 buildPythonPackage rec {
12   pname = "sunweg";
13   version = "3.1.0";
14   pyproject = true;
16   disabled = pythonOlder "3.7";
18   src = fetchFromGitHub {
19     owner = "rokam";
20     repo = "sunweg";
21     rev = "refs/tags/${version}";
22     hash = "sha256-T67eH5WjS7J2pcNjq9psNmD4MwMfH+HRvk9llqI3FoQ=";
23   };
25   nativeBuildInputs = [ setuptools ];
27   propagatedBuildInputs = [
28     python-dateutil
29     requests
30   ];
32   # Module has no tests
33   doCheck = false;
35   pythonImportsCheck = [ "sunweg" ];
37   meta = with lib; {
38     description = "Module to access the WEG solar energy platform";
39     homepage = "https://github.com/rokam/sunweg";
40     changelog = "https://github.com/rokam/sunweg/releases/tag/${version}";
41     license = licenses.mit;
42     maintainers = with maintainers; [ fab ];
43   };