python312Packages.semver: refactor

This commit is contained in:
Fabian Affolter 2024-04-06 10:25:24 +02:00
parent fe4295b9ec
commit 0f27c8a4ac
1 changed files with 8 additions and 8 deletions

View File

@ -10,7 +10,7 @@
buildPythonPackage rec {
pname = "semver";
version = "3.0.2";
format = "pyproject";
pyproject = true;
disabled = pythonOlder "3.7";
@ -21,7 +21,12 @@ buildPythonPackage rec {
hash = "sha256-772PSUq1dqtn9aOol+Bo0S0OItBmoiCNP8q/YCBvKU4=";
};
nativeBuildInputs = [
postPatch = ''
sed -i "/--cov/d" setup.cfg
sed -i "/--no-cov-on-fail/d" setup.cfg
'';
build-system = [
setuptools
setuptools-scm
];
@ -30,11 +35,6 @@ buildPythonPackage rec {
pytestCheckHook
];
postPatch = ''
sed -i "/--cov/d" setup.cfg
sed -i "/--no-cov-on-fail/d" setup.cfg
'';
disabledTestPaths = [
# Don't test the documentation
"docs/*.rst"
@ -46,10 +46,10 @@ buildPythonPackage rec {
meta = with lib; {
description = "Python package to work with Semantic Versioning (http://semver.org/)";
mainProgram = "pysemver";
homepage = "https://python-semver.readthedocs.io/";
changelog = "https://github.com/python-semver/python-semver/releases/tag/3.0.0";
license = licenses.bsd3;
maintainers = with maintainers; [ np ];
mainProgram = "pysemver";
};
}