pythonPackages.pyPdf: refactor move to python-modules
This commit is contained in:
parent
0ea426c1e8
commit
49ccf24626
25
pkgs/development/python-modules/pypdf/default.nix
Normal file
25
pkgs/development/python-modules/pypdf/default.nix
Normal 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;
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
@ -3467,25 +3467,7 @@ in {
|
|||||||
|
|
||||||
pymaging_png = callPackage ../development/python-modules/pymaging_png { };
|
pymaging_png = callPackage ../development/python-modules/pymaging_png { };
|
||||||
|
|
||||||
pyPdf = buildPythonPackage rec {
|
pyPdf = callPackage ../development/python-modules/pypdf { };
|
||||||
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;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
pypdf2 = buildPythonPackage rec {
|
pypdf2 = buildPythonPackage rec {
|
||||||
name = "PyPDF2-${version}";
|
name = "PyPDF2-${version}";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user