2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
defcon,
|
|
|
|
fonttools,
|
|
|
|
lxml,
|
|
|
|
fs,
|
|
|
|
mutatormath,
|
|
|
|
fontmath,
|
|
|
|
fontparts,
|
|
|
|
setuptools-scm,
|
2020-09-25 04:45:31 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2024-04-21 15:54:59 +00:00
|
|
|
pname = "ufoprocessor";
|
2020-09-25 04:45:31 +00:00
|
|
|
version = "1.9.0";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
2024-04-21 15:54:59 +00:00
|
|
|
pname = "ufoProcessor";
|
|
|
|
inherit version;
|
2020-09-25 04:45:31 +00:00
|
|
|
sha256 = "0ns11aamgavgsfj8qf5kq7dvzmgl0mhr1cbych2f075ipfdvva5s";
|
|
|
|
extension = "zip";
|
|
|
|
};
|
|
|
|
|
2021-06-04 09:07:49 +00:00
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
defcon
|
|
|
|
lxml
|
|
|
|
fonttools
|
|
|
|
fs
|
|
|
|
fontmath
|
|
|
|
fontparts
|
|
|
|
mutatormath
|
|
|
|
];
|
|
|
|
|
2021-02-05 17:12:51 +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-17 00:15:33 +00:00
|
|
|
|
2020-09-25 04:45:31 +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 ];
|
|
|
|
};
|
|
|
|
}
|