2025-06-02 05:56:41 +02:00

47 lines
962 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pytest-cov-stub,
pythonOlder,
setuptools,
setuptools-scm,
}:
buildPythonPackage rec {
pname = "semver";
version = "3.0.4";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "python-semver";
repo = "python-semver";
tag = version;
hash = "sha256-ry6r2cY/DRTiPxT+ZiumgFbQyHNzL8i1QcQbLWjnDVE=";
};
build-system = [
setuptools
setuptools-scm
];
nativeCheckInputs = [
pytestCheckHook
pytest-cov-stub
];
pythonImportsCheck = [ "semver" ];
meta = with lib; {
description = "Python package to work with Semantic Versioning (http://semver.org/)";
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";
};
}