2020-08-25 16:27:42 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, python
|
|
|
|
, fonttools, lxml, fs, unicodedata2
|
|
|
|
, defcon, fontpens, fontmath, booleanoperations
|
2020-12-24 14:36:19 +00:00
|
|
|
, pytest, setuptools_scm
|
2020-08-25 16:27:42 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "fontParts";
|
2020-12-24 14:36:19 +00:00
|
|
|
version = "0.9.7";
|
2020-08-25 16:27:42 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-12-24 14:36:19 +00:00
|
|
|
sha256 = "183y1y11bqd4ky4anyv40qbvsm6i90gnydqzrjg7syspjsqvfqgy";
|
2020-08-25 16:27:42 +01:00
|
|
|
extension = "zip";
|
|
|
|
};
|
|
|
|
|
2020-12-24 14:36:19 +00:00
|
|
|
nativeBuildInputs = [ setuptools_scm ];
|
|
|
|
|
2020-08-25 16:27:42 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
booleanoperations
|
|
|
|
fonttools
|
|
|
|
unicodedata2 # fonttools[unicode] extra
|
|
|
|
lxml # fonttools[lxml] extra
|
|
|
|
fs # fonttools[ufo] extra
|
|
|
|
defcon
|
|
|
|
fontpens # defcon[pens] extra
|
|
|
|
fontmath
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} Lib/fontParts/fontshell/test.py
|
|
|
|
'';
|
|
|
|
checkInputs = [ pytest ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "An API for interacting with the parts of fonts during the font development process.";
|
|
|
|
homepage = "https://github.com/robotools/fontParts";
|
2020-09-05 12:07:21 +01:00
|
|
|
changelog = "https://github.com/robotools/fontParts/releases/tag/v${version}";
|
2020-08-25 16:27:42 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.sternenseemann ];
|
|
|
|
};
|
|
|
|
}
|