9 buildPythonPackage rec {
14 disabled = pythonOlder "3.7";
16 src = fetchFromGitHub {
17 owner = "python-versioneer";
18 repo = "python-versioneer";
19 rev = "refs/tags/${version}";
20 hash = "sha256-3b7Wfhd24Vym5XCeN/M1832Q1VzvlWi3quTRaZrID2s=";
25 ] ++ lib.optionals (pythonOlder "3.11") [
29 passthru.optional-dependencies = {
30 toml = lib.optionals (pythonOlder "3.11") [
35 # Couldn't get tests to work because, for instance, they used virtualenv and pip
38 pythonImportsCheck = [
43 description = "Version-string management for VCS-controlled trees";
44 homepage = "https://github.com/python-versioneer/python-versioneer";
45 changelog = "https://github.com/python-versioneer/python-versioneer/blob/${version}/NEWS.md";
46 license = licenses.publicDomain;
47 maintainers = with maintainers; [ jluttine ];