pythonPackages.pyPdf: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-26 11:19:53 -04:00 committed by Frederik Rietdijk
parent 0ea426c1e8
commit 49ccf24626
2 changed files with 26 additions and 19 deletions

View File

@ -0,0 +1,25 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, isPy3k
}:
buildPythonPackage rec {
pname = "pyPdf";
version = "1.13";
src = fetchPypi {
inherit pname version;
sha256 = "3aede4c3c9c6ad07c98f059f90db0b09ed383f7c791c46100f649e1cabda0e3b";
};
# Not supported. Package is no longer maintained.
disabled = isPy3k;
meta = with stdenv.lib; {
description = "Pure-Python PDF toolkit";
homepage = "http://pybrary.net/pyPdf/";
license = licenses.bsd3;
};
}

View File

@ -3467,25 +3467,7 @@ in {
pymaging_png = callPackage ../development/python-modules/pymaging_png { };
pyPdf = buildPythonPackage rec {
name = "pyPdf-1.13";
src = pkgs.fetchurl {
url = "mirror://pypi/p/pyPdf/${name}.tar.gz";
sha256 = "3aede4c3c9c6ad07c98f059f90db0b09ed383f7c791c46100f649e1cabda0e3b";
};
buildInputs = with self; [ ];
# Not supported. Package is no longer maintained.
disabled = isPy3k;
meta = {
description = "Pure-Python PDF toolkit";
homepage = "http://pybrary.net/pyPdf/";
license = licenses.bsd3;
};
};
pyPdf = callPackage ../development/python-modules/pypdf { };
pypdf2 = buildPythonPackage rec {
name = "PyPDF2-${version}";