My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/poetry-dynamic-versioning/default.nix

58 lines
1.1 KiB

{ lib
, buildPythonPackage
, dunamai
, fetchFromGitHub
, jinja2
, markupsafe
, poetry-core
, pytestCheckHook
, pythonOlder
, tomlkit
}:
buildPythonPackage rec {
pname = "poetry-dynamic-versioning";
version = "0.17.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "mtkennerly";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-u4rqkwy5C1+OrHJUsc/9Sy3YyxWlsTv8cbB1bBKh2K4=";
};
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"
];
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 ];
};
}