summary refs log tree commit diff
path: root/pkgs/development/python-modules/fontparts
diff options
context:
space:
mode:
authorsternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org>2020-08-25 17:27:42 +0200
committerJon <jonringer@users.noreply.github.com>2020-08-30 10:17:23 -0700
commit5db55e51062c50354ce4e1848cc7c777038ef8ea (patch)
treeafbd2f60ee37d7fb7ed15d6b0e541fc4f9250693 /pkgs/development/python-modules/fontparts
parente591c63a4f638efb2b823b06eef358c7d8dc4b03 (diff)
downloadnixpkgs-5db55e51062c50354ce4e1848cc7c777038ef8ea.tar
nixpkgs-5db55e51062c50354ce4e1848cc7c777038ef8ea.tar.gz
nixpkgs-5db55e51062c50354ce4e1848cc7c777038ef8ea.tar.bz2
nixpkgs-5db55e51062c50354ce4e1848cc7c777038ef8ea.tar.lz
nixpkgs-5db55e51062c50354ce4e1848cc7c777038ef8ea.tar.xz
nixpkgs-5db55e51062c50354ce4e1848cc7c777038ef8ea.tar.zst
nixpkgs-5db55e51062c50354ce4e1848cc7c777038ef8ea.zip
pythonPackages.fontparts: init at 0.9.2
Diffstat (limited to 'pkgs/development/python-modules/fontparts')
-rw-r--r--pkgs/development/python-modules/fontparts/default.nix39
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/fontparts/default.nix b/pkgs/development/python-modules/fontparts/default.nix
new file mode 100644
index 00000000000..dd341fef8b3
--- /dev/null
+++ b/pkgs/development/python-modules/fontparts/default.nix
@@ -0,0 +1,39 @@
+{ lib, buildPythonPackage, fetchPypi, python
+, fonttools, lxml, fs, unicodedata2
+, defcon, fontpens, fontmath, booleanoperations
+, pytest
+}:
+
+buildPythonPackage rec {
+  pname = "fontParts";
+  version = "0.9.2";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "0hwzdppmrrw1xz49x36h6mcsrwya1f3zpqrc206y73j4pbn7fh0k";
+    extension = "zip";
+  };
+
+  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";
+    license = licenses.mit;
+    maintainers = [ maintainers.sternenseemann ];
+  };
+}