at 17.09-beta 458 B view raw
1# This function provides specific bits for building a flit-based Python package. 2 3{ python 4, flit 5}: 6 7{ ... } @ attrs: 8 9attrs // { 10 buildInputs = [ flit ]; 11 buildPhase = attrs.buildPhase or '' 12 runHook preBuild 13 flit wheel 14 runHook postBuild 15 ''; 16 17 # Flit packages, like setuptools packages, might have tests. 18 installCheckPhase = attrs.checkPhase or '' 19 ${python.interpreter} -m unittest discover 20 ''; 21 doCheck = attrs.doCheck or true; 22}