1{ lib 2, buildPythonPackage 3, dunamai 4, fetchFromGitHub 5, jinja2 6, markupsafe 7, poetry-core 8, pytestCheckHook 9, pythonOlder 10, tomlkit 11}: 12 13buildPythonPackage rec { 14 pname = "poetry-dynamic-versioning"; 15 version = "0.18.0"; 16 format = "pyproject"; 17 18 disabled = pythonOlder "3.7"; 19 20 src = fetchFromGitHub { 21 owner = "mtkennerly"; 22 repo = pname; 23 rev = "refs/tags/v${version}"; 24 hash = "sha256-UO2D80cZurfPCtDXAEQ4nOJdhNtIghLtZN7gL+9xbGc="; 25 }; 26 27 nativeBuildInputs = [ 28 poetry-core 29 ]; 30 31 propagatedBuildInputs = [ 32 dunamai 33 jinja2 34 markupsafe 35 tomlkit 36 ]; 37 38 checkInputs = [ 39 pytestCheckHook 40 ]; 41 42 disabledTests = [ 43 # these require .git, but leaveDotGit = true doesn't help 44 "test__get_version__defaults" 45 "test__get_version__format_jinja" 46 ]; 47 48 pythonImportsCheck = [ 49 "poetry_dynamic_versioning" 50 ]; 51 52 meta = with lib; { 53 description = "Plugin for Poetry to enable dynamic versioning based on VCS tags"; 54 homepage = "https://github.com/mtkennerly/poetry-dynamic-versioning"; 55 license = licenses.mit; 56 maintainers = with maintainers; [ cpcloud ]; 57 }; 58}