diff --git a/pkgs/development/python-modules/cryptoparser/default.nix b/pkgs/development/python-modules/cryptoparser/default.nix index 7cd535eea98f..6c814655ae8f 100644 --- a/pkgs/development/python-modules/cryptoparser/default.nix +++ b/pkgs/development/python-modules/cryptoparser/default.nix @@ -9,20 +9,20 @@ pyfakefs, setuptools, setuptools-scm, - unittestCheckHook, + pytestCheckHook, urllib3, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "cryptoparser"; - version = "1.0.2"; + version = "1.1.0"; pyproject = true; src = fetchFromGitLab { owner = "coroner"; repo = "cryptoparser"; - tag = "v${version}"; - hash = "sha256-CsG4hfA3pfE7FwxNfaUTLMS8RV0tv1czoHdIlolUX34="; + tag = "v${finalAttrs.version}"; + hash = "sha256-Zd305BFM3G8LMQqDwtbwRPy6ooNXJ61UzWBwVewh0F4="; }; patches = [ @@ -48,7 +48,12 @@ buildPythonPackage rec { nativeCheckInputs = [ pyfakefs - unittestCheckHook + pytestCheckHook + ]; + + disabledTests = [ + # pytest incorrectly collects abstract base classes + "TestCasesBasesHttpHeader" ]; postInstall = '' @@ -60,9 +65,8 @@ buildPythonPackage rec { meta = { description = "Security protocol parser and generator"; homepage = "https://gitlab.com/coroner/cryptoparser"; - changelog = "https://gitlab.com/coroner/cryptoparser/-/blob/${src.tag}/CHANGELOG.md"; + changelog = "https://gitlab.com/coroner/cryptoparser/-/blob/${finalAttrs.src.tag}/CHANGELOG.md"; license = lib.licenses.mpl20; - maintainers = [ ]; teams = with lib.teams; [ ngi ]; }; -} +})