pythonPackages.versioningit: init at 2.0.1

This commit is contained in:
D Anzorge
2022-10-04 00:27:35 +02:00
parent fdecf8e9ee
commit 5a65614cbd
2 changed files with 70 additions and 0 deletions
@@ -0,0 +1,68 @@
{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, importlib-metadata
, packaging
, setuptools
, tomli
, pytestCheckHook
, build
, pydantic
, pytest-mock
, git
, mercurial
}:
buildPythonPackage rec {
pname = "versioningit";
version = "2.0.1";
disabled = pythonOlder "3.8";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-gJfiYNm99nZYW9gTO/e1//rDeox2KWJVtC2Gy1EqsuM=";
};
propagatedBuildInputs = [
packaging
setuptools
tomli
] ++ lib.optionals (pythonOlder "3.10") [
importlib-metadata
];
checkInputs = [
pytestCheckHook
build
pydantic
pytest-mock
git
mercurial
];
disabledTests = [
# wants to write to the Nix store
"test_editable_mode"
];
preCheck = ''
substituteInPlace tox.ini \
--replace "--cov=versioningit" "" \
--replace "--cov-config=tox.ini" "" \
--replace "--no-cov-on-fail" ""
'';
pythonImportsCheck = [
"versioningit"
];
meta = with lib; {
description = "setuptools plugin for determining package version from VCS";
homepage = "https://github.com/jwodder/versioningit";
changelog = "https://versioningit.readthedocs.io/en/latest/changelog.html";
license = licenses.mit;
maintainers = with maintainers; [ DeeUnderscore ];
};
}
+2
View File
@@ -11526,6 +11526,8 @@ in {
versionfinder = callPackage ../development/python-modules/versionfinder { };
versioningit = callPackage ../development/python-modules/versioningit { };
versiontag = callPackage ../development/python-modules/versiontag { };
versiontools = callPackage ../development/python-modules/versiontools { };