blob: 4977c5269e2ea66b871f08119c5e77b33b8e88e8 (
plain)
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
49
50
51
52
53
54
55
56
|
{
lib,
bleak,
buildPythonPackage,
fetchFromGitHub,
fetchpatch,
pytestCheckHook,
requests,
setuptools,
}:
buildPythonPackage rec {
pname = "aranet4";
version = "2.5.1";
pyproject = true;
src = fetchFromGitHub {
owner = "Anrijs";
repo = "Aranet4-Python";
tag = "v${version}";
hash = "sha256-/FBrP4aceIX9dcZmm+k13PSAPuK4SQenjWqOAFPSvL8=";
};
patches = [
# https://github.com/Anrijs/Aranet4-Python/pull/62
(fetchpatch {
name = "fix-for-failing-test-with-bleak-1.1.0.patch";
url = "https://github.com/Anrijs/Aranet4-Python/pull/62/commits/0117633682050c77cd00ead1bce93375367d7a3c.patch";
hash = "sha256-S4Di6bKbapCpDdOIy4sSiG9dO7OZq5ixjjK+ux4EEp0=";
})
];
build-system = [ setuptools ];
dependencies = [
bleak
requests
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "aranet4" ];
disabledTests = [
# Test compares rendered output
"test_current_values"
];
meta = {
description = "Module to interact with Aranet4 devices";
homepage = "https://github.com/Anrijs/Aranet4-Python";
license = with lib.licenses; [ mit ];
maintainers = with lib.maintainers; [ fab ];
mainProgram = "aranetctl";
};
}
|