13 buildPythonPackage rec {
18 disabled = pythonOlder "3.7";
20 src = fetchFromGitHub {
23 rev = "refs/tags/v${version}";
24 hash = "sha256-oOchPGBRHf3PT1Ynci56CF/eW4TkRVPV9inVNX2QQrk=";
27 nativeBuildInputs = [ poetry-core ];
29 propagatedBuildInputs = [ packaging ] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
31 # needs to be able to run dunami from PATH
33 export PATH=$PATH:$out/bin
34 export HOME=$(mktemp -d)
36 git config --global user.email "nobody@example.com"
37 git config --global user.name "Nobody"
46 # clones from github.com
47 "test__version__from_git__shallow"
50 pythonImportsCheck = [ "dunamai" ];
53 description = "Dynamic version generation";
54 mainProgram = "dunamai";
55 homepage = "https://github.com/mtkennerly/dunamai";
56 changelog = "https://github.com/mtkennerly/dunamai/blob/v${version}/CHANGELOG.md";
57 license = licenses.mit;
58 maintainers = with maintainers; [ jmgilman ];