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

45 lines
1011 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pythonAtLeast,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "ndeflib";
version = "0.3.3";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "nfcpy";
repo = "ndeflib";
tag = "v${version}";
hash = "sha256-cpfztE+/AW7P0J7QeTDfVGYc2gEkr7gzA352hC9bdTM=";
};
nativeBuildInputs = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "ndef" ];
disabledTests = [
# AssertionError caused due to wrong size
"test_decode_error"
]
++ lib.optionals (pythonAtLeast "3.12") [ "test_encode_error" ];
meta = {
description = "Python package for parsing and generating NFC Data Exchange Format messages";
homepage = "https://github.com/nfcpy/ndeflib";
changelog = "https://github.com/nfcpy/ndeflib/releases/tag/v${version}";
license = lib.licenses.isc;
maintainers = with lib.maintainers; [ fab ];
};
}