Merge pull request #302039 from fabaff/semver-fix

python312Packages.semver: refactor
This commit is contained in:
Nick Cao 2024-04-06 11:20:34 -04:00 committed by GitHub
commit 350a0efadd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 18 additions and 21 deletions

View File

@ -1,16 +1,17 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, setuptools
, setuptools-scm
{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
setuptools,
setuptools-scm,
}:
buildPythonPackage rec {
pname = "semver";
version = "3.0.2";
format = "pyproject";
pyproject = true;
disabled = pythonOlder "3.7";
@ -21,35 +22,31 @@ buildPythonPackage rec {
hash = "sha256-772PSUq1dqtn9aOol+Bo0S0OItBmoiCNP8q/YCBvKU4=";
};
nativeBuildInputs = [
setuptools
setuptools-scm
];
nativeCheckInputs = [
pytestCheckHook
];
postPatch = ''
sed -i "/--cov/d" setup.cfg
sed -i "/--no-cov-on-fail/d" setup.cfg
'';
build-system = [
setuptools
setuptools-scm
];
nativeCheckInputs = [ pytestCheckHook ];
disabledTestPaths = [
# Don't test the documentation
"docs/*.rst"
];
pythonImportsCheck = [
"semver"
];
pythonImportsCheck = [ "semver" ];
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";
};
}