Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 41 lines 963 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 pythonAtLeast, 7 setuptools, 8}: 9 10buildPythonPackage rec { 11 pname = "ndeflib"; 12 version = "0.3.3"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "nfcpy"; 17 repo = "ndeflib"; 18 tag = "v${version}"; 19 hash = "sha256-cpfztE+/AW7P0J7QeTDfVGYc2gEkr7gzA352hC9bdTM="; 20 }; 21 22 nativeBuildInputs = [ setuptools ]; 23 24 nativeCheckInputs = [ pytestCheckHook ]; 25 26 pythonImportsCheck = [ "ndef" ]; 27 28 disabledTests = [ 29 # AssertionError caused due to wrong size 30 "test_decode_error" 31 ] 32 ++ lib.optionals (pythonAtLeast "3.12") [ "test_encode_error" ]; 33 34 meta = { 35 description = "Python package for parsing and generating NFC Data Exchange Format messages"; 36 homepage = "https://github.com/nfcpy/ndeflib"; 37 changelog = "https://github.com/nfcpy/ndeflib/releases/tag/v${version}"; 38 license = lib.licenses.isc; 39 maintainers = with lib.maintainers; [ fab ]; 40 }; 41}