Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / sunweg / default.nix
blobb33220898cd339b7893c0582a0454af1f98164b6
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pytestCheckHook
5 , pythonOlder
6 , requests
7 }:
9 buildPythonPackage rec {
10   pname = "sunweg";
11   version = "2.0.0";
12   format = "setuptools";
14   disabled = pythonOlder "3.7";
16   src = fetchFromGitHub {
17     owner = "rokam";
18     repo = pname;
19     rev = "refs/tags/${version}";
20     hash = "sha256-S92PybN+pReI9WtJr9as95uceicsSMadMQfh9JxsE8U=";
21   };
23   propagatedBuildInputs = [
24     requests
25   ];
27   # Module has no tests
28   doCheck = false;
30   pythonImportsCheck = [
31     "sunweg"
32   ];
34   meta = with lib; {
35     description = "Module to access the WEG solar energy platform";
36     homepage = "https://github.com/rokam/sunweg";
37     changelog = "https://github.com/rokam/sunweg/releases/tag/${version}";
38     license = licenses.mit;
39     maintainers = with maintainers; [ fab ];
40   };