linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / python-modules / fontparts / default.nix
blob3280f5f4bb1e9276cd54fa7595ced1989411b393
1 { lib, buildPythonPackage, fetchPypi, python
2 , fonttools, lxml, fs, unicodedata2
3 , defcon, fontpens, fontmath, booleanoperations
4 , pytest, setuptools_scm
5 }:
7 buildPythonPackage rec {
8   pname = "fontParts";
9   version = "0.9.10";
11   src = fetchPypi {
12     inherit pname version;
13     sha256 = "0hwjnqbkcfkhigx581w4532vddsx5wiy73gx46kjisp0hlir9628";
14     extension = "zip";
15   };
17   nativeBuildInputs = [ setuptools_scm ];
19   propagatedBuildInputs = [
20     booleanoperations
21     fonttools
22     unicodedata2  # fonttools[unicode] extra
23     lxml          # fonttools[lxml] extra
24     fs            # fonttools[ufo] extra
25     defcon
26     fontpens      # defcon[pens] extra
27     fontmath
28   ];
30   checkPhase = ''
31     runHook preCheck
32     ${python.interpreter} Lib/fontParts/fontshell/test.py
33     runHook postCheck
34   '';
35   checkInputs = [ pytest ];
37   meta = with lib; {
38     description = "An API for interacting with the parts of fonts during the font development process.";
39     homepage = "https://github.com/robotools/fontParts";
40     changelog = "https://github.com/robotools/fontParts/releases/tag/v${version}";
41     license = licenses.mit;
42     maintainers = [ maintainers.sternenseemann ];
43   };