1{ lib 2, buildPythonPackage 3, fetchPypi 4, click 5, twisted 6}: 7 8let incremental = buildPythonPackage rec { 9 pname = "incremental"; 10 version = "22.10.0"; 11 12 src = fetchPypi { 13 inherit pname version; 14 hash = "sha256-kS/uteD34BiOb0IkHS9FAALhG7wJN8ZYZQRYVMJMC9A="; 15 }; 16 17 propagatedBuildInputs = [ 18 click 19 ]; 20 21 # escape infinite recursion with twisted 22 doCheck = false; 23 24 nativeCheckInputs = [ 25 twisted 26 ]; 27 28 checkPhase = '' 29 trial incremental 30 ''; 31 32 passthru.tests = { 33 check = incremental.overridePythonAttrs (_: { doCheck = true; }); 34 }; 35 36 pythonImportsCheck = [ "incremental" ]; 37 38 meta = with lib; { 39 homepage = "https://github.com/twisted/incremental"; 40 description = "Incremental is a small library that versions your Python projects"; 41 license = licenses.mit; 42 maintainers = with maintainers; [ ]; 43 }; 44}; in incremental