summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/glyphtools/default.nix
blob: df2ee43ae348feef274f3d711a4b51fcfab18a14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{
  lib,
  buildPythonPackage,
  fetchPypi,
  beziers,
  glyphslib,
  numpy,
}:

buildPythonPackage rec {
  pname = "glyphtools";
  version = "0.8.0";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-PXwXHWMJbsi6ZtN+daaXAnlw3gV5DFAhyRxdBa7UP+M=";
  };

  propagatedBuildInputs = [
    beziers
    glyphslib
    numpy
  ];

  # A unit test suite does exist, but it only contains a dummy test that
  # imports the library.
  doCheck = false;

  pythonImportsCheck = [ "glyphtools" ];

  meta = {
    description = "Python library for extracting information from font glyphs";
    homepage = "https://github.com/simoncozens/glyphtools";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ danc86 ];
  };
}