1{ buildPythonPackage 2, callPackage 3, fetchPypi 4, packaging 5, tomli 6, lib 7}: 8 9buildPythonPackage rec { 10 pname = "setuptools-scm"; 11 version = "6.3.2"; 12 13 src = fetchPypi { 14 pname = "setuptools_scm"; 15 inherit version; 16 sha256 = "1wm0i27siyy1yqr9rv7lqvb65agay9051yi8jzmi8dgb3q4ai6m4"; 17 }; 18 19 propagatedBuildInputs = [ 20 packaging 21 tomli 22 ]; 23 24 pythonImportsCheck = [ 25 "setuptools_scm" 26 ]; 27 28 # check in passhtru.tests.pytest to escape infinite recursion on pytest 29 doCheck = false; 30 31 passthru.tests = { 32 pytest = callPackage ./tests.nix { }; 33 }; 34 35 meta = with lib; { 36 homepage = "https://github.com/pypa/setuptools_scm/"; 37 description = "Handles managing your python package versions in scm metadata"; 38 license = licenses.mit; 39 maintainers = with maintainers; [ SuperSandro2000 ]; 40 }; 41}