Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / elmax / default.nix
blob7ec3b8d1c112782235617d2df8522fb17241d2a1
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , httpx
5 , poetry-core
6 , pythonOlder
7 , yarl
8 }:
10 buildPythonPackage rec {
11   pname = "elmax";
12   version = "0.1.1";
13   format = "pyproject";
14   disabled = pythonOlder "3.7";
16   src = fetchFromGitHub {
17     owner = "home-assistant-ecosystem";
18     repo = "python-elmax";
19     rev = version;
20     sha256 = "sha256-vDISJ/CVOjpM+GPF2TCm3/AMFTWTM0b/+ZPCpAEvNvY=";
21   };
23   nativeBuildInputs = [ poetry-core ];
25   propagatedBuildInputs = [
26     httpx
27     yarl
28   ];
30   # Project has no tests
31   doCheck = false;
32   pythonImportsCheck = [ "elmax" ];
34   meta = with lib; {
35     description = "Python API client for the Elmax Cloud services";
36     homepage = "https://github.com/home-assistant-ecosystem/python-elmax";
37     license = with licenses; [ asl20 ];
38     maintainers = with maintainers; [ fab ];
39   };