16 buildPythonPackage rec {
17 pname = "setuptools-git-versioning";
21 src = fetchFromGitHub {
23 repo = "setuptools-git-versioning";
24 rev = "refs/tags/v${version}";
25 hash = "sha256-MAHB6hMAcMo1+HCc6g7xQUD2sG+TLjM/6Oa/BKuXpRc=";
33 propagatedBuildInputs = [
36 ] ++ lib.optionals (pythonOlder "3.11") [
40 pythonImportsCheck = [
41 "setuptools_git_versioning"
54 # so that its built binary is accessible by tests
55 export PATH="$out/bin:$PATH"
58 # limit tests because the full suite takes several minutes to run
59 pytestFlagsArray = [ "-m" "important" ];
62 # runs an isolated build that uses internet to download dependencies
63 "test_config_not_used"
67 description = "Use git repo data (latest tag, current commit hash, etc) for building a version number according PEP-440";
68 homepage = "https://github.com/dolfinus/setuptools-git-versioning";
69 changelog = "https://github.com/dolfinus/setuptools-git-versioning/blob/${src.rev}/CHANGELOG.rst";
70 license = licenses.mit;
71 maintainers = with maintainers; [ tjni ];