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 ];