Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / elmax / default.nix
blob6391e86a5670033122f69bed64a3dd705d358f8d
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , httpx
5 , poetry-core
6 , pythonOlder
7 , pytest-asyncio
8 , pytest-httpx
9 , pytestCheckHook
10 , yarl
13 buildPythonPackage rec {
14   pname = "elmax";
15   version = "0.1.5";
16   format = "pyproject";
17   disabled = pythonOlder "3.7";
19   src = fetchFromGitHub {
20     owner = "home-assistant-ecosystem";
21     repo = "python-elmax";
22     rev = version;
23     hash = "sha256-EcYEpYv+EwwEfW8Sy7aQjFAPpmsA6qVbmlwrPdxdnEw=";
24   };
26   nativeBuildInputs = [ poetry-core ];
28   propagatedBuildInputs = [
29     httpx
30     yarl
31   ];
33   nativeCheckInputs = [
34     pytest-asyncio
35     pytest-httpx
36     pytestCheckHook
37   ];
39   pythonImportsCheck = [ "elmax" ];
41   meta = with lib; {
42     description = "Python API client for the Elmax Cloud services";
43     homepage = "https://github.com/home-assistant-ecosystem/python-elmax";
44     license = with licenses; [ asl20 ];
45     maintainers = with maintainers; [ fab ];
46   };