1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pythonOlder, 6 flit-scm, 7 packaging, 8 setuptools-scm, 9 pytestCheckHook, 10}: 11 12buildPythonPackage rec { 13 pname = "nipreps-versions"; 14 version = "1.0.4"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchFromGitHub { 20 owner = "nipreps"; 21 repo = "version-schemes"; 22 tag = version; 23 hash = "sha256-B2wtLurzgk59kTooH51a2dewK7aEyA0dAm64Wp+tqhM="; 24 }; 25 26 env.SETUPTOOLS_SCM_PRETEND_VERSION = version; 27 28 nativeBuildInputs = [ 29 flit-scm 30 setuptools-scm 31 ]; 32 33 propagatedBuildInputs = [ packaging ]; 34 35 nativeCheckInputs = [ pytestCheckHook ]; 36 pythonImportsCheck = [ "nipreps_versions" ]; 37 38 meta = with lib; { 39 description = "Setuptools_scm plugin for nipreps version schemes"; 40 homepage = "https://github.com/nipreps/version-schemes"; 41 changelog = "https://github.com/nipreps/version-schemes/blob/${src.rev}/CHANGES.md"; 42 license = licenses.asl20; 43 maintainers = with maintainers; [ bcdarwin ]; 44 }; 45}