blob: dda10a9d6f2219349d5b02a9e62e871f30ba8e98 (
plain) (
blame)
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
48
|
{ lib
, bleak
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, requests
}:
buildPythonPackage rec {
pname = "aranet4";
version = "2.2.2";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "Anrijs";
repo = "Aranet4-Python";
rev = "refs/tags/v${version}";
hash = "sha256-HiveHkGQUCvG4aqK2HSCbONObidT7yof4LzKSJPEOKU=";
};
propagatedBuildInputs = [
bleak
requests
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"aranet4"
];
disabledTests = [
# Test compares rendered output
"test_current_values"
];
meta = with lib; {
description = "Module to interact with Aranet4 devices";
homepage = "https://github.com/Anrijs/Aranet4-Python";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}
|