1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 setuptools, 6 setuptools-scm, 7 pytestCheckHook, 8}: 9 10buildPythonPackage rec { 11 pname = "setuptools-scm-git-archive"; 12 version = "1.4.1"; 13 pyproject = true; 14 15 src = fetchPypi { 16 inherit version; 17 pname = "setuptools_scm_git_archive"; 18 hash = "sha256-xBi8d7OXTTrGXyaPBY8j4B3F+ZHyIzEosOFqad4iewk="; 19 }; 20 21 nativeBuildInputs = [ 22 setuptools 23 setuptools-scm 24 ]; 25 26 nativeCheckInputs = [ pytestCheckHook ]; 27 28 enabledTestPaths = [ "tests.py" ]; 29 30 pythonImportsCheck = [ "setuptools_scm_git_archive" ]; 31 32 meta = with lib; { 33 description = "setuptools_scm plugin for git archives"; 34 homepage = "https://github.com/Changaco/setuptools_scm_git_archive"; 35 license = licenses.mit; 36 maintainers = [ ]; 37 # https://github.com/Changaco/setuptools_scm_git_archive/pull/22 38 broken = versionAtLeast setuptools-scm.version "8"; 39 }; 40}