Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / pyfronius / default.nix
blob74791d25c0cd96b89c40bd903e272b7ead475880
1 { lib
2 , aiohttp
3 , buildPythonPackage
4 , fetchFromGitHub
5 , pythonOlder
6 , pytestCheckHook
7 }:
9 buildPythonPackage rec {
10   pname = "pyfronius";
11   version = "0.7.2";
12   format = "setuptools";
14   disabled = pythonOlder "3.7";
16   src = fetchFromGitHub {
17     owner = "nielstron";
18     repo = pname;
19     rev = "release-${version}";
20     hash = "sha256-eWe4nXKW9oP9lqehy6BK7ABaIqP3dgRX6ymW1Okfd9g=";
21   };
23   propagatedBuildInputs = [
24     aiohttp
25   ];
27   nativeCheckInputs = [
28     pytestCheckHook
29   ];
31   pythonImportsCheck = [
32     "pyfronius"
33   ];
35   meta = with lib; {
36     description = "Python module to communicate with Fronius Symo";
37     homepage = "https://github.com/nielstron/pyfronius";
38     changelog = "https://github.com/nielstron/pyfronius/releases/tag/release-${version}";
39     license = with licenses; [ mit ];
40     maintainers = with maintainers; [ fab ];
41   };