1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pytestCheckHook, 6 pythonOlder, 7 git, 8 hatchling, 9 setuptools-scm, 10}: 11 12buildPythonPackage rec { 13 pname = "hatch-vcs"; 14 version = "0.4.0"; 15 format = "pyproject"; 16 17 disabled = pythonOlder "3.8"; 18 19 src = fetchPypi { 20 pname = "hatch_vcs"; 21 inherit version; 22 hash = "sha256-CTgQdI/gHbDUUfq88sGsJojK79Iy1O3pZwkLHBsH2fc="; 23 }; 24 25 nativeBuildInputs = [ hatchling ]; 26 27 propagatedBuildInputs = [ 28 hatchling 29 setuptools-scm 30 ]; 31 32 nativeCheckInputs = [ 33 git 34 pytestCheckHook 35 ]; 36 37 disabledTests = [ 38 # incompatible with setuptools-scm>=7 39 # https://github.com/ofek/hatch-vcs/issues/8 40 "test_write" 41 ]; 42 43 pythonImportsCheck = [ "hatch_vcs" ]; 44 45 meta = with lib; { 46 changelog = "https://github.com/ofek/hatch-vcs/releases/tag/v${version}"; 47 description = "A plugin for Hatch that uses your preferred version control system (like Git) to determine project versions"; 48 homepage = "https://github.com/ofek/hatch-vcs"; 49 license = licenses.mit; 50 maintainers = with maintainers; [ cpcloud ]; 51 }; 52}