diff --git a/pkgs/development/python-modules/testresources/default.nix b/pkgs/development/python-modules/testresources/default.nix index 7461c0f77dae..825f19ebef98 100644 --- a/pkgs/development/python-modules/testresources/default.nix +++ b/pkgs/development/python-modules/testresources/default.nix @@ -2,8 +2,8 @@ lib, buildPythonPackage, fetchFromGitHub, - setuptools, - pbr, + hatchling, + hatch-vcs, fixtures, testtools, pytestCheckHook, @@ -11,23 +11,19 @@ buildPythonPackage rec { pname = "testresources"; - version = "2.0.2"; + version = "2.1.2"; pyproject = true; src = fetchFromGitHub { owner = "testing-cabal"; repo = "testresources"; tag = version; - hash = "sha256-cdZObOgBOUxYg4IGUUMb6arlpb6NTU7w+EW700LKH4Y="; + hash = "sha256-CLo0b0V1fXQQFHDn/rYAmZy4ifzMEnFv26opmvn6TdQ="; }; build-system = [ - setuptools - pbr - ]; - - dependencies = [ - pbr + hatchling + hatch-vcs ]; nativeCheckInputs = [ @@ -36,14 +32,6 @@ buildPythonPackage rec { pytestCheckHook ]; - disabledTestPaths = [ - # imports fixtures.test.helpers, but fixtures does not install tests anymore - # https://github.com/testing-cabal/fixtures/commit/349afbb1ec7dde2e472b4563025660a35e595153 - "testresources/tests/test_test_resource.py" - ]; - - env.PBR_VERSION = version; - meta = { description = "Pyunit extension for managing expensive test resources"; homepage = "https://launchpad.net/testresources";