10 self = buildPythonPackage rec {
12 version = "2022.06.26";
13 format = "setuptools";
15 disabled = pythonOlder "3.5";
17 src = fetchFromGitHub {
21 hash = "sha256-YaXTkeUazwzghCX96Wfx39hGvukWKtHMLLeyF9OeiZI=";
25 substituteInPlace setup.py \
26 --replace "version=calver_version(True)" 'version="${version}"'
29 doCheck = false; # avoid infinite recursion with hatchling
36 pythonImportsCheck = [ "calver" ];
38 passthru.tests.calver = self.overridePythonAttrs { doCheck = true; };
41 description = "Setuptools extension for CalVer package versions";
42 homepage = "https://github.com/di/calver";
43 license = lib.licenses.asl20;
44 maintainers = with lib.maintainers; [ dotlambda ];