Skip to content

Commit e5a5b0d

Browse files
committed
python3Packages.numato-gpio: init at 0.14.0
1 parent 5788de5 commit e5a5b0d

File tree

2 files changed

+54
-0
lines changed

2 files changed

+54
-0
lines changed
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
lib,
3+
buildPythonPackage,
4+
fetchFromGitHub,
5+
hatchling,
6+
pyserial,
7+
rich,
8+
pytestCheckHook,
9+
}:
10+
11+
buildPythonPackage rec {
12+
pname = "numato-gpio";
13+
version = "0.14.0";
14+
pyproject = true;
15+
16+
src = fetchFromGitHub {
17+
owner = "clssn";
18+
repo = "numato-gpio";
19+
tag = "v${version}";
20+
hash = "sha256-9kbPEtJOQhCxYh8cjyCAufV63mV7ZF1x7CdUyJLfqII=";
21+
};
22+
23+
build-system = [
24+
hatchling
25+
];
26+
27+
dependencies = [
28+
pyserial
29+
rich
30+
];
31+
32+
nativeCheckInputs = [
33+
pytestCheckHook
34+
];
35+
36+
disabledTests = [
37+
# Exclude system tests that require hardware
38+
"sys_tests"
39+
];
40+
41+
pythonImportsCheck = [
42+
"numato_gpio"
43+
];
44+
45+
meta = {
46+
description = "Python API for Numato GPIO Expanders";
47+
homepage = "https://github.com/clssn/numato-gpio";
48+
changelog = "https://github.com/clssn/numato-gpio/releases/tag/${src.tag}";
49+
license = lib.licenses.mit;
50+
maintainers = [ lib.maintainers.jamiemagee ];
51+
};
52+
}

pkgs/top-level/python-packages.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10577,6 +10577,8 @@ self: super: with self; {
1057710577

1057810578
num2words = callPackage ../development/python-modules/num2words { };
1057910579

10580+
numato-gpio = callPackage ../development/python-modules/numato-gpio { };
10581+
1058010582
numba = callPackage ../development/python-modules/numba { inherit (pkgs.config) cudaSupport; };
1058110583

1058210584
numba-scipy = callPackage ../development/python-modules/numba-scipy { };

0 commit comments

Comments
 (0)