blob: 685e393144214fe9c23854f67691d28d31ec2ef5 (
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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
pyserial,
pytestCheckHook,
pythonAtLeast,
setuptools,
standard-telnetlib,
}:
buildPythonPackage rec {
pname = "nad-receiver";
version = "0.3.0";
pyproject = true;
src = fetchFromGitHub {
owner = "joopert";
repo = "nad_receiver";
tag = version;
hash = "sha256-jRMk/yMA48ei+g/33+mMYwfwixaKTMYcU/z/VOoJbvY=";
};
build-system = [ setuptools ];
dependencies = [ pyserial ] ++ lib.optionals (pythonAtLeast "3.13") [ standard-telnetlib ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "nad_receiver" ];
meta = {
description = "Python interface for NAD receivers";
homepage = "https://github.com/joopert/nad_receiver";
changelog = "https://github.com/joopert/nad_receiver/releases/tag/${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}
|