···1717buildPythonPackage rec {
1818 pname = "setuptools-git-versioning";
1919 version = "2.1.0";
2020- format = "pyproject";
2020+ pyproject = true;
21212222 src = fetchFromGitHub {
2323 owner = "dolfinus";
···2525 tag = "v${version}";
2626 hash = "sha256-Slf6tq83LajdTnr98SuCiFIdm/6auzftnARLAOBgyng=";
2727 };
2828+2929+ postPatch = ''
3030+ # Because the .git dir is missing, it falls back to using version 0.0.1
3131+ # Instead we use the version specified in the derivation
3232+ substituteInPlace setup.py --replace-fail \
3333+ 'version=version_from_git(root=here, dev_template="{tag}.post{ccount}")' \
3434+ "version='${version}'"
3535+ '';
28362937 build-system = [
3038 setuptools