3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/fontparts/default.nix
2021-02-14 01:15:13 +01:00

45 lines
1.2 KiB
Nix

{ lib, buildPythonPackage, fetchPypi, python
, fonttools, lxml, fs, unicodedata2
, defcon, fontpens, fontmath, booleanoperations
, pytest, setuptools_scm
}:
buildPythonPackage rec {
pname = "fontParts";
version = "0.9.9";
src = fetchPypi {
inherit pname version;
sha256 = "1iz04kpxgc5fx2rl4585hr1vp4cdajqbddlskkhlmzkn9hvz528i";
extension = "zip";
};
nativeBuildInputs = [ setuptools_scm ];
propagatedBuildInputs = [
booleanoperations
fonttools
unicodedata2 # fonttools[unicode] extra
lxml # fonttools[lxml] extra
fs # fonttools[ufo] extra
defcon
fontpens # defcon[pens] extra
fontmath
];
checkPhase = ''
runHook preCheck
${python.interpreter} Lib/fontParts/fontshell/test.py
runHook postCheck
'';
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";
changelog = "https://github.com/robotools/fontParts/releases/tag/v${version}";
license = licenses.mit;
maintainers = [ maintainers.sternenseemann ];
};
}