3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/pymfy/default.nix

46 lines
878 B
Nix
Raw Normal View History

2021-02-27 22:29:09 +00:00
{ lib
, buildPythonPackage
, fetchFromGitHub
, httpretty
, poetry-core
, pytestCheckHook
, pythonOlder
, requests
, requests_oauthlib
}:
buildPythonPackage rec {
pname = "pymfy";
2021-06-06 16:27:25 +01:00
version = "0.10.1";
2021-02-27 22:29:09 +00:00
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "tetienne";
repo = "somfy-open-api";
rev = "v${version}";
2021-06-06 16:27:25 +01:00
sha256 = "sha256-xX7vNBQaYPdnsukFcQyEa2G1XIvf9ehADNXbLUUCRoU=";
2021-02-27 22:29:09 +00:00
};
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [
requests
requests_oauthlib
];
checkInputs = [
httpretty
pytestCheckHook
];
pythonImportsCheck = [ "pymfy" ];
meta = with lib; {
description = "Python client for the Somfy Open API";
homepage = "https://github.com/tetienne/somfy-open-api";
license = with licenses; [ gpl3Only ];
maintainers = with maintainers; [ fab ];
};
}