Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: b16a186529ba
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: afd6b04f478d
Choose a head ref
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Sep 27, 2019

  1. pythonPackages.pymupdf: init at 1.16.2

    python bindings for mupdf. Provides the fitz module for
    https://github.com/dsanson/termpdf.py that I am trying to package.
    teto authored and Matthieu Coudron committed Sep 27, 2019
    Copy the full SHA
    afd6b04 View commit details
Showing with 29 additions and 0 deletions.
  1. +27 −0 pkgs/development/python-modules/pymupdf/default.nix
  2. +2 −0 pkgs/top-level/python-packages.nix
27 changes: 27 additions & 0 deletions pkgs/development/python-modules/pymupdf/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{ stdenv, buildPythonPackage, fetchPypi, mupdf, swig }:
buildPythonPackage rec {
pname = "PyMuPDF";
version = "1.16.2";

src = fetchPypi {
inherit pname version;
sha256 = "1bidybzkjsc0kdd18xnhz97p70br8xh8whzwydp3a5m411cm00mg";
};

patchPhase = ''
substituteInPlace setup.py \
--replace '/usr/include/mupdf' ${mupdf.dev}/include/mupdf
'';
nativeBuildInputs = [ swig ];
buildInputs = [ mupdf ];

doCheck = false;

meta = with stdenv.lib; {
description = "Python bindings for MuPDF's rendering library.";
homepage = https://github.com/pymupdf/PyMuPDF;
maintainers = with maintainers; [ teto ];
license = licenses.agpl3;
platforms = platforms.linux;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
@@ -855,6 +855,8 @@ in {

pymysql = callPackage ../development/python-modules/pymysql { };

pymupdf = callPackage ../development/python-modules/pymupdf { };

Pmw = callPackage ../development/python-modules/Pmw { };

py_stringmatching = callPackage ../development/python-modules/py_stringmatching { };