From c0a498b5d59f68f22677edf405247c883e5723d3 Mon Sep 17 00:00:00 2001 From: Matthieu Coudron Date: Thu, 26 Sep 2019 15:57:08 +0900 Subject: [PATCH] pythonPackages.pdfrw: init at 0.4.0 --- .../python-modules/pdfrw/default.nix | 21 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 23 insertions(+) create mode 100644 pkgs/development/python-modules/pdfrw/default.nix diff --git a/pkgs/development/python-modules/pdfrw/default.nix b/pkgs/development/python-modules/pdfrw/default.nix new file mode 100644 index 0000000000000..15b8a8dc8d6b4 --- /dev/null +++ b/pkgs/development/python-modules/pdfrw/default.nix @@ -0,0 +1,21 @@ +{ stdenv, buildPythonPackage, fetchPypi }: + +buildPythonPackage rec { + pname = "pdfrw"; + version = "0.4"; + + src = fetchPypi { + inherit pname version; + sha256 = "1x1yp63lg3jxpg9igw8lh5rc51q353ifsa1bailb4qb51r54kh0d"; + }; + + # tests require the extra download of github.com/pmaupin/static_pdfs + doCheck = false; + + meta = with stdenv.lib; { + description = "pdfrw is a pure Python library that reads and writes PDFs."; + homepage = "https://github.com/pmaupin/pdfrw"; + maintainers = with maintainers; [ teto ]; + license = licenses.mit; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 1d9a2c88b1590..6f05a46a99c76 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4896,6 +4896,8 @@ in { pdfkit = callPackage ../development/python-modules/pdfkit { }; + pdfrw = callPackage ../development/python-modules/pdfrw { }; + periodictable = callPackage ../development/python-modules/periodictable { }; pgcli = callPackage ../development/tools/database/pgcli {};