Files
nixpkgs/pkgs/development/python-modules/ndms2-client/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

39 lines
820 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonAtLeast,
setuptools,
standard-telnetlib,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "ndms2-client";
version = "0.1.3";
pyproject = true;
src = fetchFromGitHub {
owner = "foxel";
repo = "python_ndms2_client";
rev = version;
hash = "sha256-A19olC1rTHTy0xyeSP45fqvv9GUynQSrMgXBgW8ySOs=";
};
dependencies = lib.optionals (pythonAtLeast "3.13") [ standard-telnetlib ];
nativeBuildInputs = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "ndms2_client" ];
meta = {
description = "Keenetic NDMS 2.x and 3.x client";
homepage = "https://github.com/foxel/python_ndms2_client";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}