mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 21:53:32 +00:00
51 lines
1009 B
Nix
51 lines
1009 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
httpretty,
|
|
poetry-core,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
requests,
|
|
requests-oauthlib,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pymfy";
|
|
version = "0.11.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tetienne";
|
|
repo = "somfy-open-api";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-G/4aBtsN20QtQnMiBBQWg0mqrmR8FuU2f9g77qvk8nI=";
|
|
};
|
|
|
|
pythonRelaxDeps = [ "requests-oauthlib" ];
|
|
|
|
build-system = [ poetry-core ];
|
|
|
|
dependencies = [
|
|
requests
|
|
requests-oauthlib
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
httpretty
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "pymfy" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python client for the Somfy Open API";
|
|
homepage = "https://github.com/tetienne/somfy-open-api";
|
|
changelog = "https://github.com/tetienne/somfy-open-api/releases/tag/v${version}";
|
|
license = licenses.gpl3Only;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|