1{ lib 2, buildPythonPackage 3, callPackage 4, flit 5}: 6 7buildPythonPackage rec { 8 pname = "flit-core"; 9 inherit (flit) version; 10 format = "pyproject"; 11 12 outputs = [ 13 "out" 14 "testsout" 15 ]; 16 17 inherit (flit) src patches; 18 19 preConfigure = '' 20 cd flit_core 21 ''; 22 23 postInstall = '' 24 mkdir $testsout 25 cp -R ../tests $testsout/tests 26 ''; 27 28 # check in passthru.tests.pytest to escape infinite recursion with setuptools-scm 29 doCheck = false; 30 31 passthru.tests = { 32 inherit flit; 33 pytest = callPackage ./tests.nix { }; 34 }; 35 36 meta = with lib; { 37 description = "Distribution-building parts of Flit. See flit package for more information"; 38 homepage = "https://github.com/pypa/flit"; 39 license = licenses.bsd3; 40 maintainers = with maintainers; [ fridh SuperSandro2000 ]; 41 }; 42}