From adf0eca754a0eddba68cb5d7e3d52a6fc21c64b5 Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Fri, 3 May 2024 00:38:50 +0200 Subject: [PATCH] python311Packages.strct: 0.0.32 -> 0.0.34 Diff: https://github.com/shaypal5/strct/compare/v0.0.32...v0.0.34 --- .../python-modules/strct/default.nix | 27 ++++++------------- 1 file changed, 8 insertions(+), 19 deletions(-) diff --git a/pkgs/development/python-modules/strct/default.nix b/pkgs/development/python-modules/strct/default.nix index c5f9bc2f994b..5148958b9789 100644 --- a/pkgs/development/python-modules/strct/default.nix +++ b/pkgs/development/python-modules/strct/default.nix @@ -1,6 +1,5 @@ { lib , fetchFromGitHub -, fetchpatch , buildPythonPackage , setuptools , pytestCheckHook @@ -9,36 +8,26 @@ buildPythonPackage rec { pname = "strct"; - version = "0.0.32"; + version = "0.0.34"; pyproject = true; src = fetchFromGitHub { owner = "shaypal5"; repo = "strct"; rev = "v${version}"; - hash = "sha256-ctafvdfSOdp7tlCUYg7d5XTXR1qBcWvOVtGtNUnhYIw="; + hash = "sha256-uPM2U+emZUCGqEhIeTBmaOu8eSfK4arqvv9bItBWpUs="; }; - patches = [ - # https://github.com/shaypal5/strct/pull/4 - (fetchpatch { - name = "fix-versioneer-on-python312.patch"; - url = "https://github.com/shaypal5/strct/commit/a1e5b6ca9045b52efdfdbb3c82e12a01e251d41b.patch"; - hash = "sha256-xXADCSIhq1ARny2twzrhR1J8LkMFWFl6tmGxrM8RvkU="; - }) - ]; - postPatch = '' - substituteInPlace pytest.ini \ + substituteInPlace pyproject.toml \ --replace-fail \ - "--cov" \ - "#--cov" - - # configure correct version, which fails due to missing .git - substituteInPlace versioneer.py strct/_version.py \ - --replace-fail '"0+unknown"' '"${version}"' + '"--cov' \ + '#"--cov' ''; + # don't append .dev0 to version + env.RELEASING_PROCESS = "1"; + nativeBuildInputs = [ setuptools ];