depot/third_party/nixpkgs/pkgs/development/python-modules/fontparts/default.nix
Default email b6d97fd731 Project import generated by Copybara.
GitOrigin-RevId: be0b453d7c7eee2090962c9a83749b024ff9acf5
2020-12-25 14:55:36 +01:00

42 lines
1.1 KiB
Nix

{ lib, buildPythonPackage, fetchPypi, python
, fonttools, lxml, fs, unicodedata2
, defcon, fontpens, fontmath, booleanoperations
, pytest, setuptools_scm
}:
buildPythonPackage rec {
pname = "fontParts";
version = "0.9.7";
src = fetchPypi {
inherit pname version;
sha256 = "183y1y11bqd4ky4anyv40qbvsm6i90gnydqzrjg7syspjsqvfqgy";
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 = ''
${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";
changelog = "https://github.com/robotools/fontParts/releases/tag/v${version}";
license = licenses.mit;
maintainers = [ maintainers.sternenseemann ];
};
}