Merge pull request #281313 from fabaff/asn1tools-fix

python311Packages.asn1tools: disable failing tests

authored by Fabian Affolter and committed by GitHub ba15cbd1 dde89aa5

+19 -7
+19 -7
pkgs/development/python-modules/asn1tools/default.nix
··· 1 1 { lib 2 - , buildPythonPackage 3 - , fetchFromGitHub 4 2 , bitstruct 3 + , buildPythonPackage 5 4 , diskcache 5 + , fetchFromGitHub 6 6 , prompt-toolkit 7 7 , pyparsing 8 - , python 8 + , pytest-xdist 9 + , pytestCheckHook 9 10 , pythonOlder 10 - , pytestCheckHook 11 + , setuptools 11 12 }: 12 13 13 14 buildPythonPackage rec { 14 15 pname = "asn1tools"; 15 16 version = "0.166.0"; 16 - format = "setuptools"; 17 + pyproject = true; 17 18 18 19 disabled = pythonOlder "3.8"; 19 20 20 21 src = fetchFromGitHub { 21 22 owner = "eerimoq"; 22 23 repo = "asn1tools"; 23 - rev = version; 24 + rev = "refs/tags/${version}"; 24 25 hash = "sha256-TWAOML6nsLX3TYqoQ9fcSjrUmC4byXOfczfkmSaSa0k="; 25 26 }; 26 27 28 + nativeBuildInputs = [ 29 + setuptools 30 + ]; 31 + 27 32 propagatedBuildInputs = [ 28 33 bitstruct 29 34 pyparsing ··· 39 44 }; 40 45 41 46 nativeCheckInputs = [ 47 + pytest-xdist 42 48 pytestCheckHook 43 49 ] ++ lib.flatten (builtins.attrValues passthru.optional-depdendencies); 44 - 45 50 46 51 pythonImportsCheck = [ 47 52 "asn1tools" 48 53 ]; 49 54 55 + disabledTests = [ 56 + # assert exact error message of pyparsing which changed and no longer matches 57 + # https://github.com/eerimoq/asn1tools/issues/167 58 + "test_parse_error" 59 + ]; 60 + 50 61 meta = with lib; { 51 62 description = "ASN.1 parsing, encoding and decoding"; 52 63 homepage = "https://github.com/eerimoq/asn1tools"; 64 + changelog = "https://github.com/eerimoq/asn1tools/releases/tag/${version}"; 53 65 license = licenses.mit; 54 66 maintainers = with maintainers; [ ]; 55 67 };