20 buildPythonPackage rec {
21 pname = "versioningit";
25 disabled = pythonOlder "3.8";
28 inherit pname version;
29 hash = "sha256-Tbg+2Z9WsH2DlAvuNEXKRsoSDRO2swTNtftE5apO3sA=";
32 build-system = [ hatchling ];
36 ++ lib.optionals (pythonOlder "3.10") [ importlib-metadata ]
37 ++ lib.optionals (pythonOlder "3.11") [ tomli ];
39 # AttributeError: type object 'CaseDetails' has no attribute 'model_validate_json'
40 doCheck = lib.versionAtLeast pydantic.version "2";
55 # wants to write to the Nix store
59 pythonImportsCheck = [ "versioningit" ];
62 description = "setuptools plugin for determining package version from VCS";
63 mainProgram = "versioningit";
64 homepage = "https://github.com/jwodder/versioningit";
65 changelog = "https://versioningit.readthedocs.io/en/latest/changelog.html";
66 license = licenses.mit;
67 maintainers = with maintainers; [ DeeUnderscore ];