diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-02-27 23:29:09 +0100 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2021-02-27 23:29:09 +0100 |
commit | 2430a647eb1f6737e749b08c67c1f83023d2ce72 (patch) | |
tree | 9ade95734e210e7c662950022cd43295fd55f24e /pkgs/development/python-modules/pymfy | |
parent | 062613abd52ee48187795c8da612b348f89fda4d (diff) |
python3Packages.pymfy: init at 0.9.4
Diffstat (limited to 'pkgs/development/python-modules/pymfy')
-rw-r--r-- | pkgs/development/python-modules/pymfy/default.nix | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pymfy/default.nix b/pkgs/development/python-modules/pymfy/default.nix new file mode 100644 index 0000000000000..32483eea7b9a1 --- /dev/null +++ b/pkgs/development/python-modules/pymfy/default.nix @@ -0,0 +1,45 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, httpretty +, poetry-core +, pytestCheckHook +, pythonOlder +, requests +, requests_oauthlib +}: + +buildPythonPackage rec { + pname = "pymfy"; + version = "0.9.4"; + format = "pyproject"; + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "tetienne"; + repo = "somfy-open-api"; + rev = "v${version}"; + sha256 = "1ml536dvva2xd52jfgrd557h2sr5w6567sxnyq0blhkgpyz4m2av"; + }; + + 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 ]; + }; +} |