mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 11:53:27 +00:00
Merge pull request #283236 from fabaff/ndeflib-fix
python312Packages.ndeflib: disable failing test on Python 3.12
This commit is contained in:
commit
3909a7f696
@ -2,13 +2,15 @@
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pytestCheckHook
|
||||
, pythonAtLeast
|
||||
, pythonOlder
|
||||
, setuptools
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "ndeflib";
|
||||
version = "0.3.3";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
@ -19,6 +21,10 @@ buildPythonPackage rec {
|
||||
hash = "sha256-cpfztE+/AW7P0J7QeTDfVGYc2gEkr7gzA352hC9bdTM=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
@ -30,11 +36,14 @@ buildPythonPackage rec {
|
||||
disabledTests = [
|
||||
# AssertionError caused due to wrong size
|
||||
"test_decode_error"
|
||||
] ++ lib.optionals (pythonAtLeast "3.12") [
|
||||
"test_encode_error"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
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 = licenses.isc;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user