blob: 126e3993635dd44bc291e7291b72a5136ff1b380 (
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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
pyserial,
rich,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "numato-gpio";
version = "0.14.0";
pyproject = true;
src = fetchFromGitHub {
owner = "clssn";
repo = "numato-gpio";
tag = "v${version}";
hash = "sha256-9kbPEtJOQhCxYh8cjyCAufV63mV7ZF1x7CdUyJLfqII=";
};
build-system = [
hatchling
];
dependencies = [
pyserial
rich
];
nativeCheckInputs = [
pytestCheckHook
];
disabledTests = [
# Exclude system tests that require hardware
"sys_tests"
];
pythonImportsCheck = [
"numato_gpio"
];
meta = {
description = "Python API for Numato GPIO Expanders";
homepage = "https://github.com/clssn/numato-gpio";
changelog = "https://github.com/clssn/numato-gpio/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.jamiemagee ];
};
}
|