diff --git a/pkgs/development/python-modules/zpp/default.nix b/pkgs/development/python-modules/zpp/default.nix index 507a84376af8..ebec15fe33a3 100644 --- a/pkgs/development/python-modules/zpp/default.nix +++ b/pkgs/development/python-modules/zpp/default.nix @@ -3,27 +3,30 @@ buildPythonPackage, fetchFromGitHub, setuptools, - testers, - zpp, + versionCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "zpp"; - version = "1.1.0"; - + version = "1.1.1"; pyproject = true; src = fetchFromGitHub { owner = "jbigot"; repo = "zpp"; - tag = version; - hash = "sha256-Jvh80TfOonZ57lb+4PulVOUKi9Y74nplIcrPzlUPw3M="; + tag = finalAttrs.version; + hash = "sha256-P1wrhyFU6VMlmvxOITrPd3F3dnd1tY53gt4SBo7UNiA="; }; + postPatch = '' + substituteInPlace zpp/version.py \ + --replace-fail "1.1.0" "1.1.1" + ''; + build-system = [ setuptools ]; - passthru = { - tests.version = testers.testVersion { package = zpp; }; - }; + nativeCheckInputs = [ + versionCheckHook + ]; meta = { description = "'Z' pre-processor, the last preprocessor you'll ever need"; @@ -32,4 +35,4 @@ buildPythonPackage rec { mainProgram = "zpp"; maintainers = with lib.maintainers; [ GaetanLepage ]; }; -} +})