depot/third_party/nixpkgs/pkgs/development/python-modules/fontparts/default.nix
Default email 8e65f7f0cc Project import generated by Copybara.
GitOrigin-RevId: 062a0c5437b68f950b081bbfc8a699d57a4ee026
2022-03-05 17:20:37 +01:00

44 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.10.3";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-aHtjLHdc2/s3ppF8fz8qFAqxwEKMZJJAFNlBaZ7FAb4=";
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 ];
};
}