Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / pymfy / default.nix
blob32483eea7b9a116dd8a1958d2efd7b6c11a128d6
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , httpretty
5 , poetry-core
6 , pytestCheckHook
7 , pythonOlder
8 , requests
9 , requests_oauthlib
12 buildPythonPackage rec {
13   pname = "pymfy";
14   version = "0.9.4";
15   format = "pyproject";
16   disabled = pythonOlder "3.7";
18   src = fetchFromGitHub {
19     owner = "tetienne";
20     repo = "somfy-open-api";
21     rev = "v${version}";
22     sha256 = "1ml536dvva2xd52jfgrd557h2sr5w6567sxnyq0blhkgpyz4m2av";
23   };
25   nativeBuildInputs = [ poetry-core ];
27   propagatedBuildInputs = [
28     requests
29     requests_oauthlib
30   ];
32   checkInputs = [
33     httpretty
34     pytestCheckHook
35   ];
37   pythonImportsCheck = [ "pymfy" ];
39   meta = with lib; {
40     description = "Python client for the Somfy Open API";
41     homepage = "https://github.com/tetienne/somfy-open-api";
42     license = with licenses; [ gpl3Only ];
43     maintainers = with maintainers; [ fab ];
44   };