diff --git a/pkgs/development/python-modules/fonttools/default.nix b/pkgs/development/python-modules/fonttools/default.nix new file mode 100644 index 00000000000..b9ef3ba94b6 --- /dev/null +++ b/pkgs/development/python-modules/fonttools/default.nix @@ -0,0 +1,32 @@ +{ buildPythonPackage +, fetchPypi +, numpy +, pytest +, pytestrunner +}: + +buildPythonPackage rec { + pname = "fonttools"; + version = "3.13.0"; + name = "${pname}-${version}"; + + src = fetchPypi { + inherit pname version; + sha256 = "5ec278ff231d0c88afe8266e911ee0f8e66c8501c53f5f144a1a0abbc936c6b8"; + extension = "zip"; + }; + + buildInputs = [ + numpy + ]; + + checkInputs = [ + pytest + pytestrunner + ]; + + meta = { + homepage = "https://github.com/fonttools/fonttools"; + description = "A library to manipulate font files from Python"; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 51801798b67..11340382708 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -11304,24 +11304,7 @@ in { inherit python; }; - fonttools = buildPythonPackage (rec { - version = "3.0"; - name = "fonttools-${version}"; - - src = pkgs.fetchurl { - url = "mirror://pypi/F/FontTools/fonttools-${version}.tar.gz"; - sha256 = "0f4iblpbf3y3ghajiccvdwk2f46cim6dsj6fq1kkrbqfv05dr4nz"; - }; - - buildInputs = with self; [ - numpy - ]; - - meta = { - homepage = "https://github.com/behdad/fonttools"; - description = "Font file processing tools"; - }; - }); + fonttools = callPackage ../development/python-modules/fonttools { }; foolscap = buildPythonPackage (rec { name = "foolscap-${version}";