My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/pymfy/default.nix

50 lines
892 B

{ lib
, buildPythonPackage
, fetchFromGitHub
, httpretty
, poetry-core
, pytestCheckHook
, pythonOlder
, requests
, requests-oauthlib
}:
buildPythonPackage rec {
pname = "pymfy";
version = "0.11.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "tetienne";
repo = "somfy-open-api";
rev = "v${version}";
sha256 = "0wpjwjmywfyqgwvfa5kwcjpaljc32qa088kk88nl9nqdvc31mzhv";
};
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 ];
};
}