Skip to content

Commit a91803b

Browse files
authored
python3Packages.numato-gpio: init at 0.14.0 (#435189)
2 parents 3355ae5 + d4abfff commit a91803b

File tree

3 files changed

+57
-1
lines changed

3 files changed

+57
-1
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/servers/home-assistant/component-packages.nix

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4070,7 +4070,8 @@
40704070
];
40714071
"numato" =
40724072
ps: with ps; [
4073-
]; # missing inputs: numato-gpio
4073+
numato-gpio
4074+
];
40744075
"number" =
40754076
ps: with ps; [
40764077
];
@@ -7483,6 +7484,7 @@
74837484
"ntfy"
74847485
"nuheat"
74857486
"nuki"
7487+
"numato"
74867488
"number"
74877489
"nut"
74887490
"nws"

pkgs/top-level/python-packages.nix

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

1058210582
num2words = callPackage ../development/python-modules/num2words { };
1058310583

10584+
numato-gpio = callPackage ../development/python-modules/numato-gpio { };
10585+
1058410586
numba = callPackage ../development/python-modules/numba { inherit (pkgs.config) cudaSupport; };
1058510587

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

0 commit comments

Comments
 (0)