From 7d6d4aa6e617e8debede5b92a17ae6704b841beb Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 4 Aug 2026 12:33:36 +0200 Subject: [PATCH] python3Packages.testrepository: 0.0.21 -> 0.0.22 Diff: https://github.com/testing-cabal/testrepository/compare/0.0.21...0.0.22 Changelog: https://github.com/testing-cabal/testrepository/releases/tag/0.0.22 --- .../python-modules/testrepository/default.nix | 44 ++++++++++++------- 1 file changed, 27 insertions(+), 17 deletions(-) diff --git a/pkgs/development/python-modules/testrepository/default.nix b/pkgs/development/python-modules/testrepository/default.nix index 19af11c17108..e44ed103afc9 100644 --- a/pkgs/development/python-modules/testrepository/default.nix +++ b/pkgs/development/python-modules/testrepository/default.nix @@ -1,41 +1,51 @@ { lib, buildPythonPackage, - fetchPypi, - testtools, - testresources, - pbr, - python-subunit, + fetchFromGitHub, fixtures, + hatch-vcs, + hatchling, + python-subunit, python, + testresources, + testtools, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "testrepository"; - version = "0.0.21"; - format = "setuptools"; + version = "0.0.22"; + pyproject = true; - src = fetchPypi { - inherit pname version; - hash = "sha256-Nor89+CQs8aIvddUol9kvDFOUSuBb4xxufn8F9w3o9k="; + src = fetchFromGitHub { + owner = "testing-cabal"; + repo = "testrepository"; + tag = finalAttrs.version; + hash = "sha256-t5cTVMtzYIu4AIQVUVz3odvj+qFeYyUxIroB3yb0bFQ="; }; - nativeCheckInputs = [ testresources ]; - buildInputs = [ pbr ]; - propagatedBuildInputs = [ + build-system = [ + hatch-vcs + hatchling + ]; + + dependencies = [ fixtures python-subunit testtools ]; + nativeCheckInputs = [ testresources ]; + checkPhase = '' ${python.interpreter} ./testr ''; meta = { description = "Database of test results which can be used as part of developer workflow"; - mainProgram = "testr"; - homepage = "https://pypi.org/project/testrepository/"; + homepage = "https://github.com/testing-cabal/testrepository"; + changelog = "https://github.com/testing-cabal/testrepository/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.bsd2; + maintainers = [ ]; + mainProgram = "testr"; }; -} +})