Merge pull request #308636 from pbsds/bump-strct-1714689476

python311Packages.strct: 0.0.32 -> 0.0.34
This commit is contained in:
Nick Cao
2024-05-04 09:44:07 -04:00
committed by GitHub
@@ -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
];