python3Packages.poetry-dynamic-versioning: init at 0.14.1
This commit is contained in:
parent
84e8005e4d
commit
d7248afb11
|
@ -0,0 +1,52 @@
|
||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
|
, dunamai
|
||||||
|
, jinja2
|
||||||
|
, markupsafe
|
||||||
|
, poetry-core
|
||||||
|
, pytest
|
||||||
|
, tomlkit
|
||||||
|
}:
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "poetry-dynamic-versioning";
|
||||||
|
version = "0.14.1";
|
||||||
|
format = "pyproject";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "mtkennerly";
|
||||||
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
hash = "sha256-J/93BFyp+XBy9TRAzAM64ZcMurHxcXDTukOGJE5yvBk=";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ poetry-core ];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
dunamai
|
||||||
|
tomlkit
|
||||||
|
jinja2
|
||||||
|
markupsafe
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [ pytestCheckHook ];
|
||||||
|
|
||||||
|
disabledTests = [
|
||||||
|
# these require .git, but leaveDotGit = true doesn't help
|
||||||
|
"test__get_version__defaults"
|
||||||
|
"test__get_version__format_jinja"
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "poetry_dynamic_versioning" ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Plugin for Poetry to enable dynamic versioning based on VCS tags";
|
||||||
|
homepage = "https://github.com/mtkennerly/poetry-dynamic-versioning";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ cpcloud ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -6509,6 +6509,8 @@ in {
|
||||||
|
|
||||||
poetry-core = callPackage ../development/python-modules/poetry-core { };
|
poetry-core = callPackage ../development/python-modules/poetry-core { };
|
||||||
|
|
||||||
|
poetry-dynamic-versioning = callPackage ../development/python-modules/poetry-dynamic-versioning { };
|
||||||
|
|
||||||
poetry-semver = callPackage ../development/python-modules/poetry-semver { };
|
poetry-semver = callPackage ../development/python-modules/poetry-semver { };
|
||||||
|
|
||||||
poetry2conda = callPackage ../development/python-modules/poetry2conda { };
|
poetry2conda = callPackage ../development/python-modules/poetry2conda { };
|
||||||
|
|
Loading…
Reference in a new issue