42 lines
680 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
2017-05-31 10:30:24 +09:00
, fetchPypi
, isPy27
2017-05-31 10:30:24 +09:00
, numpy
, pytest
, pytestrunner
2018-03-02 03:21:19 +01:00
, glibcLocales
2017-05-31 10:30:24 +09:00
}:
buildPythonPackage rec {
pname = "fonttools";
version = "4.2.5";
disabled = isPy27;
2017-05-31 10:30:24 +09:00
src = fetchPypi {
inherit pname version;
sha256 = "f05bff703e31d5f28e713afe89aed0e6649b02c09d8df958e8a02df9c9b2fc0e";
2017-05-31 10:30:24 +09:00
extension = "zip";
};
buildInputs = [
numpy
];
checkInputs = [
pytest
pytestrunner
glibcLocales
2017-05-31 10:30:24 +09:00
];
2018-03-02 03:21:19 +01:00
preCheck = ''
export LC_ALL="en_US.UTF-8"
'';
2017-05-31 10:30:24 +09:00
meta = {
homepage = "https://github.com/fonttools/fonttools";
2017-05-31 10:30:24 +09:00
description = "A library to manipulate font files from Python";
license = lib.licenses.mit;
2017-05-31 10:30:24 +09:00
};
}