Merge pull request #283236 from fabaff/ndeflib-fix

python312Packages.ndeflib: disable failing test on Python 3.12

authored by

Fabian Affolter and committed by
GitHub
3909a7f6 f1dd8afa

+10 -1
+10 -1
pkgs/development/python-modules/ndeflib/default.nix
··· 2 , buildPythonPackage 3 , fetchFromGitHub 4 , pytestCheckHook 5 , pythonOlder 6 }: 7 8 buildPythonPackage rec { 9 pname = "ndeflib"; 10 version = "0.3.3"; 11 - format = "setuptools"; 12 13 disabled = pythonOlder "3.7"; 14 ··· 19 hash = "sha256-cpfztE+/AW7P0J7QeTDfVGYc2gEkr7gzA352hC9bdTM="; 20 }; 21 22 nativeCheckInputs = [ 23 pytestCheckHook 24 ]; ··· 30 disabledTests = [ 31 # AssertionError caused due to wrong size 32 "test_decode_error" 33 ]; 34 35 meta = with lib; { 36 description = "Python package for parsing and generating NFC Data Exchange Format messages"; 37 homepage = "https://github.com/nfcpy/ndeflib"; 38 license = licenses.isc; 39 maintainers = with maintainers; [ fab ]; 40 };
··· 2 , buildPythonPackage 3 , fetchFromGitHub 4 , pytestCheckHook 5 + , pythonAtLeast 6 , pythonOlder 7 + , setuptools 8 }: 9 10 buildPythonPackage rec { 11 pname = "ndeflib"; 12 version = "0.3.3"; 13 + pyproject = true; 14 15 disabled = pythonOlder "3.7"; 16 ··· 21 hash = "sha256-cpfztE+/AW7P0J7QeTDfVGYc2gEkr7gzA352hC9bdTM="; 22 }; 23 24 + nativeBuildInputs = [ 25 + setuptools 26 + ]; 27 + 28 nativeCheckInputs = [ 29 pytestCheckHook 30 ]; ··· 36 disabledTests = [ 37 # AssertionError caused due to wrong size 38 "test_decode_error" 39 + ] ++ lib.optionals (pythonAtLeast "3.12") [ 40 + "test_encode_error" 41 ]; 42 43 meta = with lib; { 44 description = "Python package for parsing and generating NFC Data Exchange Format messages"; 45 homepage = "https://github.com/nfcpy/ndeflib"; 46 + changelog = "https://github.com/nfcpy/ndeflib/releases/tag/v${version}"; 47 license = licenses.isc; 48 maintainers = with maintainers; [ fab ]; 49 };