nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 aiohttp,
4 attrs,
5 backoff,
6 boto3,
7 buildPythonPackage,
8 fetchFromGitHub,
9 hatchling,
10 pyhumps,
11 pytest-asyncio,
12 pytestCheckHook,
13 warrant-lite,
14}:
15
16buildPythonPackage (finalAttrs: {
17 pname = "pyoverkiz";
18 version = "1.20.0";
19 pyproject = true;
20
21 src = fetchFromGitHub {
22 owner = "iMicknl";
23 repo = "python-overkiz-api";
24 tag = "v${finalAttrs.version}";
25 hash = "sha256-H1G85vleaV+ZWbjH3tozI6fvWPKxwrIVRIXiFwsUWOA=";
26 };
27
28 build-system = [ hatchling ];
29
30 dependencies = [
31 aiohttp
32 attrs
33 backoff
34 boto3
35 pyhumps
36 warrant-lite
37 ];
38
39 nativeCheckInputs = [
40 pytest-asyncio
41 pytestCheckHook
42 ];
43
44 pythonImportsCheck = [ "pyoverkiz" ];
45
46 meta = {
47 description = "Module to interact with the Somfy TaHoma API or other OverKiz APIs";
48 homepage = "https://github.com/iMicknl/python-overkiz-api";
49 changelog = "https://github.com/iMicknl/python-overkiz-api/releases/tag/${finalAttrs.src.tag}";
50 license = lib.licenses.mit;
51 maintainers = with lib.maintainers; [ fab ];
52 };
53})