11 self = buildPythonPackage rec {
13 version = "2022.06.26";
14 format = "setuptools";
16 disabled = pythonOlder "3.5";
18 src = fetchFromGitHub {
22 hash = "sha256-YaXTkeUazwzghCX96Wfx39hGvukWKtHMLLeyF9OeiZI=";
26 substituteInPlace setup.py \
27 --replace "version=calver_version(True)" 'version="${version}"'
30 doCheck = false; # avoid infinite recursion with hatchling
37 pythonImportsCheck = [ "calver" ];
39 passthru.tests.calver = self.overridePythonAttrs { doCheck = true; };
42 description = "Setuptools extension for CalVer package versions";
43 homepage = "https://github.com/di/calver";
44 license = lib.licenses.asl20;
45 maintainers = with lib.maintainers; [ dotlambda ];