Files
nixpkgs/pkgs/development/python-modules/nad-receiver/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

43 lines
959 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pyserial,
pytestCheckHook,
pythonAtLeast,
pythonOlder,
setuptools,
standard-telnetlib,
}:
buildPythonPackage rec {
pname = "nad-receiver";
version = "0.3.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "joopert";
repo = "nad_receiver";
rev = version;
hash = "sha256-jRMk/yMA48ei+g/33+mMYwfwixaKTMYcU/z/VOoJbvY=";
};
build-system = [ setuptools ];
dependencies = [ pyserial ] ++ lib.optionals (pythonAtLeast "3.13") [ standard-telnetlib ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "nad_receiver" ];
meta = {
description = "Python interface for NAD receivers";
homepage = "https://github.com/joopert/nad_receiver";
changelog = "https://github.com/joopert/nad_receiver/releases/tag/${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}