nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 requests,
7 requests-mock,
8 setuptools,
9}:
10
11buildPythonPackage rec {
12 pname = "pyfibaro";
13 version = "0.8.3";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "rappenze";
18 repo = "pyfibaro";
19 tag = version;
20 hash = "sha256-KdlndW066TDxZpkIP0Oa3Lii0mBpwELfHtoGKiwh6GE=";
21 };
22
23 build-system = [ setuptools ];
24
25 dependencies = [ requests ];
26
27 nativeCheckInputs = [
28 pytestCheckHook
29 requests-mock
30 ];
31
32 pythonImportsCheck = [ "pyfibaro" ];
33
34 meta = {
35 description = "Library to access FIBARO Home center";
36 homepage = "https://github.com/rappenze/pyfibaro";
37 changelog = "https://github.com/rappenze/pyfibaro/releases/tag/${src.tag}";
38 license = with lib.licenses; [ mit ];
39 maintainers = with lib.maintainers; [ fab ];
40 };
41}