nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 39 lines 911 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pyserial, 6 pytestCheckHook, 7 pythonAtLeast, 8 setuptools, 9 standard-telnetlib, 10}: 11 12buildPythonPackage rec { 13 pname = "nad-receiver"; 14 version = "0.3.0"; 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "joopert"; 19 repo = "nad_receiver"; 20 tag = version; 21 hash = "sha256-jRMk/yMA48ei+g/33+mMYwfwixaKTMYcU/z/VOoJbvY="; 22 }; 23 24 build-system = [ setuptools ]; 25 26 dependencies = [ pyserial ] ++ lib.optionals (pythonAtLeast "3.13") [ standard-telnetlib ]; 27 28 nativeCheckInputs = [ pytestCheckHook ]; 29 30 pythonImportsCheck = [ "nad_receiver" ]; 31 32 meta = { 33 description = "Python interface for NAD receivers"; 34 homepage = "https://github.com/joopert/nad_receiver"; 35 changelog = "https://github.com/joopert/nad_receiver/releases/tag/${version}"; 36 license = lib.licenses.mit; 37 maintainers = with lib.maintainers; [ fab ]; 38 }; 39}