nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 cryptography,
5 fetchFromGitHub,
6 pytestCheckHook,
7 requests,
8 setuptools,
9}:
10
11buildPythonPackage (finalAttrs: {
12 pname = "pyfritzhome";
13 version = "0.6.20";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "hthiery";
18 repo = "python-fritzhome";
19 tag = finalAttrs.version;
20 hash = "sha256-d79SS4zHsMD5aGuMNFnxwDV1IgU+0bwva/jUcfds9Hw=";
21 };
22
23 build-system = [ setuptools ];
24
25 dependencies = [
26 cryptography
27 requests
28 ];
29
30 nativeCheckInputs = [ pytestCheckHook ];
31
32 pythonImportsCheck = [ "pyfritzhome" ];
33
34 meta = {
35 description = "Python Library to access AVM FRITZ!Box homeautomation";
36 mainProgram = "fritzhome";
37 homepage = "https://github.com/hthiery/python-fritzhome";
38 changelog = "https://github.com/hthiery/python-fritzhome/releases/tag/${finalAttrs.src.tag}";
39 license = lib.licenses.mit;
40 maintainers = with lib.maintainers; [ hexa ];
41 };
42})