nixpkgs/pkgs/development/python-modules/poetry-dynamic-versioning/default.nix
Lily Foster 4fea5e46aa
python3Packages.poetry-dynamic-versioning: fix build after last version bump (#211155)
* python3Packages.poetry-dynamic-versioning: fix build after last version bump

* python310Packages.poetry-dynamic-versioning: add changelog to meta

Co-authored-by: Fabian Affolter <mail@fabian-affolter.ch>
2023-01-18 12:22:12 +01:00

62 lines
1.3 KiB
Nix

{ lib
, buildPythonPackage
, dunamai
, fetchFromGitHub
, jinja2
, markupsafe
, poetry-core
, pytestCheckHook
, pythonOlder
, tomlkit
}:
buildPythonPackage rec {
pname = "poetry-dynamic-versioning";
version = "0.21.3";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "mtkennerly";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-LdcjzfOiKar0BCdU7W+N5adErdk/NOUf+FzeaMlfn3w=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
dunamai
jinja2
markupsafe
tomlkit
];
checkInputs = [
pytestCheckHook
];
disabledTests = [
# these require .git, but leaveDotGit = true doesn't help
"test__get_version__defaults"
"test__get_version__format_jinja"
# these expect to be able to run the poetry cli which fails in test hook
"test_integration"
];
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";
changelog = "https://github.com/mtkennerly/poetry-dynamic-versioning/blob/v${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ cpcloud ];
};
}