Files
nixpkgs/pkgs/development/python-modules/numato-gpio/default.nix
2025-08-21 20:32:39 -07:00

53 lines
938 B
Nix

{
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 ];
};
}