1{ 2 lib, 3 buildPythonPackage, 4 flit, 5}: 6 7buildPythonPackage rec { 8 pname = "flit-core"; 9 inherit (flit) version; 10 format = "pyproject"; 11 12 inherit (flit) src patches; 13 14 postPatch = "cd flit_core"; 15 16 # Tests are run in the "flit" package. 17 doCheck = false; 18 19 passthru.tests = { 20 inherit flit; 21 }; 22 23 meta = with lib; { 24 description = "Distribution-building parts of Flit. See flit package for more information"; 25 homepage = "https://github.com/pypa/flit"; 26 changelog = "https://github.com/pypa/flit/blob/${src.rev}/doc/history.rst"; 27 license = licenses.bsd3; 28 teams = [ teams.python ]; 29 }; 30}