diff --git a/pkgs/development/python-modules/pdfkit/default.nix b/pkgs/development/python-modules/pdfkit/default.nix new file mode 100644 index 00000000000..c797c57c40f --- /dev/null +++ b/pkgs/development/python-modules/pdfkit/default.nix @@ -0,0 +1,25 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +}: + +buildPythonPackage rec { + pname = "pdfkit"; + version = "0.5.0"; + + src = fetchPypi { + inherit pname version; + extension = "zip"; + sha256 = "1p1m6gp51ql3wzjs2iwds8sc3hg1i48yysii9inrky6qc3s6q5vf"; + }; + + # tests are not distributed + doCheck = false; + + meta = with stdenv.lib; { + homepage = https://pypi.python.org/pypi/pdfkit; + description = "Wkhtmltopdf python wrapper to convert html to pdf using the webkit rendering engine and qt"; + license = licenses.mit; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 098b4e9acb1..2fd95d1970c 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3133,25 +3133,7 @@ in { pexpect = callPackage ../development/python-modules/pexpect { }; - pdfkit = buildPythonPackage rec { - name = "pdfkit-${version}"; - version = "0.5.0"; - - src = pkgs.fetchurl { - url = "mirror://pypi/p/pdfkit/${name}.zip"; - sha256 = "1p1m6gp51ql3wzjs2iwds8sc3hg1i48yysii9inrky6qc3s6q5vf"; - }; - - buildInputs = with self; [ ]; - # tests are not distributed - doCheck = false; - - meta = { - homepage = https://pypi.python.org/pypi/pdfkit; - description = "Wkhtmltopdf python wrapper to convert html to pdf using the webkit rendering engine and qt"; - license = licenses.mit; - }; - }; + pdfkit = callPackage ../development/python-modules/pdfkit { }; periodictable = callPackage ../development/python-modules/periodictable { };