Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, buildPythonPackage, fetchPypi 2, defcon, fonttools, lxml, fs 3, mutatormath, fontmath, fontparts 4, setuptools-scm 5}: 6 7buildPythonPackage rec { 8 pname = "ufoProcessor"; 9 version = "1.9.0"; 10 11 src = fetchPypi { 12 inherit pname version; 13 sha256 = "0ns11aamgavgsfj8qf5kq7dvzmgl0mhr1cbych2f075ipfdvva5s"; 14 extension = "zip"; 15 }; 16 17 nativeBuildInputs = [ setuptools-scm ]; 18 19 propagatedBuildInputs = [ 20 defcon 21 lxml 22 fonttools 23 fs 24 fontmath 25 fontparts 26 mutatormath 27 ]; 28 29 checkPhase = '' 30 runHook preCheck 31 for t in Tests/*.py; do 32 # https://github.com/LettError/ufoProcessor/issues/32 33 [[ "$(basename "$t")" = "tests_fp.py" ]] || python "$t" 34 done 35 runHook postCheck 36 ''; 37 38 meta = with lib; { 39 description = "Read, write and generate UFOs with designspace data"; 40 homepage = "https://github.com/LettError/ufoProcessor"; 41 license = licenses.mit; 42 maintainers = [ maintainers.sternenseemann ]; 43 }; 44}