9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
54 lines
1.1 KiB
Nix
54 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, setuptools
|
|
, setuptools-scm
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "semver";
|
|
version = "3.0.1";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "python-semver";
|
|
repo = "python-semver";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-vVi0+Pq8VpYMy73JSrvi9ranOzvFaHpcPZRt8gMkkFs=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
setuptools-scm
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
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"
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|