blob: 556b2ded1967d2182272ee9a86e70865429f333b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
httpretty,
poetry-core,
pytestCheckHook,
requests,
requests-oauthlib,
}:
buildPythonPackage rec {
pname = "pymfy";
version = "0.11.0";
pyproject = true;
src = fetchFromGitHub {
owner = "tetienne";
repo = "somfy-open-api";
tag = "v${version}";
hash = "sha256-G/4aBtsN20QtQnMiBBQWg0mqrmR8FuU2f9g77qvk8nI=";
};
pythonRelaxDeps = [ "requests-oauthlib" ];
build-system = [ poetry-core ];
dependencies = [
requests
requests-oauthlib
];
nativeCheckInputs = [
httpretty
pytestCheckHook
];
pythonImportsCheck = [ "pymfy" ];
meta = {
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 = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ fab ];
};
}
|