blob: eeef7703dd926c65b65d61bea0037a35438f73b8 (
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
49
50
51
52
53
54
55
56
57
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
fetchpatch2,
setuptools,
beautifulsoup4,
enum-compat,
pyserial,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "enocean";
version = "0.60.1";
pyproject = true;
src = fetchFromGitHub {
owner = "kipe";
repo = "enocean";
rev = "refs/tags/${version}";
hash = "sha256-S62YvRP1bvEzzzMd/jMjIdHAZsUImF9EQhsrPPzebDE=";
};
patches = [
(fetchpatch2 {
name = "replace-nose-with-pytest.patch";
url = "https://github.com/kipe/enocean/commit/e5ca3b70f0920f129219c980ad549d7f3a4576de.patch";
hash = "sha256-cDBvI0I4W5YkGTpg+rKy08TUAmKlhKa/5+Muou9iArs=";
})
];
build-system = [ setuptools ];
dependencies = [
beautifulsoup4
enum-compat
pyserial
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [
"enocean.communicators"
"enocean.protocol.packet"
"enocean.utils"
];
meta = with lib; {
changelog = "https://github.com/kipe/enocean/releases/tag/${version}";
description = "EnOcean serial protocol implementation";
mainProgram = "enocean_example.py";
homepage = "https://github.com/kipe/enocean";
license = licenses.mit;
maintainers = with maintainers; [ dotlambda ];
};
}
|