1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 hatchling,
6 pyserial,
7 rich,
8 pytestCheckHook,
9}:
10
11buildPythonPackage 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}