diff --git a/pkgs/development/python-modules/pytest-tap/default.nix b/pkgs/development/python-modules/pytest-tap/default.nix index 91513ca894e2..d603c17bc5a1 100644 --- a/pkgs/development/python-modules/pytest-tap/default.nix +++ b/pkgs/development/python-modules/pytest-tap/default.nix @@ -2,6 +2,8 @@ lib, buildPythonPackage, fetchFromGitHub, + fetchpatch, + hatchling, pythonOlder, pytest, tappy, @@ -10,29 +12,35 @@ buildPythonPackage rec { pname = "pytest-tap"; - version = "3.3"; - format = "setuptools"; + version = "3.5"; + pyproject = true; - disabled = pythonOlder "3.6"; + disabled = pythonOlder "3.9"; src = fetchFromGitHub { owner = "python-tap"; repo = "pytest-tap"; rev = "v${version}"; - sha256 = "R0RSdKTyJYGq+x0+ut4pJEywTGNgGp/ps36ZaH5dyY4="; + hash = "sha256-IuVtH1hrynbFDmz7IZ6vef9bAwl8L1eqR9WYQVL6CCA="; }; + patches = [ + (fetchpatch { + # see https://github.com/python-tap/pytest-tap/pull/105 + name = "missing-package-in-wheel.patch"; + url = "https://github.com/python-tap/pytest-tap/commit/056a44a632b1af19d9ba4b5044768bde3dd6a764.patch"; + hash = "sha256-P52NqgXtnO2SthDwVbT+NVPeBNhjGS/8Vsbe/WLCc3A="; + }) + ]; + + build-system = [ hatchling ]; + buildInputs = [ pytest ]; propagatedBuildInputs = [ tappy ]; nativeCheckInputs = [ pytestCheckHook ]; - disabledTests = [ - # Fixed in 4ed0138bf659c348b6dfb8bb701ae1989625d3d8 and hopefully in next release - "test_unittest_expected_failure" - ]; - pythonImportsCheck = [ "pytest_tap" ]; meta = with lib; {