nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 httpretty,
6 poetry-core,
7 pytestCheckHook,
8 requests,
9 requests-oauthlib,
10}:
11
12buildPythonPackage rec {
13 pname = "pymfy";
14 version = "0.11.0";
15 pyproject = true;
16
17 src = fetchFromGitHub {
18 owner = "tetienne";
19 repo = "somfy-open-api";
20 tag = "v${version}";
21 hash = "sha256-G/4aBtsN20QtQnMiBBQWg0mqrmR8FuU2f9g77qvk8nI=";
22 };
23
24 pythonRelaxDeps = [ "requests-oauthlib" ];
25
26 build-system = [ poetry-core ];
27
28 dependencies = [
29 requests
30 requests-oauthlib
31 ];
32
33 nativeCheckInputs = [
34 httpretty
35 pytestCheckHook
36 ];
37
38 pythonImportsCheck = [ "pymfy" ];
39
40 meta = {
41 description = "Python client for the Somfy Open API";
42 homepage = "https://github.com/tetienne/somfy-open-api";
43 changelog = "https://github.com/tetienne/somfy-open-api/releases/tag/v${version}";
44 license = lib.licenses.gpl3Only;
45 maintainers = with lib.maintainers; [ fab ];
46 };
47}