12 buildPythonPackage rec {
17 disabled = pythonOlder "3.7";
19 src = fetchFromGitHub {
22 rev = "refs/tags/v${version}";
23 hash = "sha256-oLJlBytdp9uVdKEdYDMz/IYnPP7XVnCUcThKO3IiW10=";
30 propagatedBuildInputs = [
32 ] ++ lib.optionals (pythonOlder "3.8") [
36 # needs to be able to run dunami from PATH
38 export PATH=$PATH:$out/bin
39 export HOME=$(mktemp -d)
41 git config --global user.email "nobody@example.com"
42 git config --global user.name "Nobody"
51 # clones from github.com
52 "test__version__from_git__shallow"
55 pythonImportsCheck = [
60 description = "Dynamic version generation";
61 mainProgram = "dunamai";
62 homepage = "https://github.com/mtkennerly/dunamai";
63 changelog = "https://github.com/mtkennerly/dunamai/blob/v${version}/CHANGELOG.md";
64 license = licenses.mit;
65 maintainers = with maintainers; [ jmgilman ];