2020-08-25 18:12:23 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi
|
|
|
|
, defcon, fonttools, lxml, fs
|
|
|
|
, mutatormath, fontmath, fontparts
|
2021-06-03 10:09:11 +00:00
|
|
|
, setuptools-scm
|
2020-08-25 18:12:23 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ufoProcessor";
|
|
|
|
version = "1.9.0";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "0ns11aamgavgsfj8qf5kq7dvzmgl0mhr1cbych2f075ipfdvva5s";
|
|
|
|
extension = "zip";
|
|
|
|
};
|
|
|
|
|
2021-06-03 10:09:11 +00:00
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
2020-08-25 18:12:23 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
defcon
|
|
|
|
lxml
|
|
|
|
fonttools
|
|
|
|
fs
|
|
|
|
fontmath
|
|
|
|
fontparts
|
|
|
|
mutatormath
|
|
|
|
];
|
|
|
|
|
2021-01-16 16:51:46 +00:00
|
|
|
checkPhase = ''
|
|
|
|
runHook preCheck
|
|
|
|
for t in Tests/*.py; do
|
|
|
|
# https://github.com/LettError/ufoProcessor/issues/32
|
|
|
|
[[ "$(basename "$t")" = "tests_fp.py" ]] || python "$t"
|
|
|
|
done
|
|
|
|
runHook postCheck
|
|
|
|
'';
|
2021-01-13 17:55:53 +00:00
|
|
|
|
2020-08-25 18:12:23 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Read, write and generate UFOs with designspace data";
|
|
|
|
homepage = "https://github.com/LettError/ufoProcessor";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.sternenseemann ];
|
|
|
|
};
|
|
|
|
}
|