diff --git a/pkgs/applications/misc/img2pdf/default.nix b/pkgs/development/python-modules/img2pdf/default.nix similarity index 78% rename from pkgs/applications/misc/img2pdf/default.nix rename to pkgs/development/python-modules/img2pdf/default.nix index b9c06d5122ca..2fa46c2ed9d4 100644 --- a/pkgs/applications/misc/img2pdf/default.nix +++ b/pkgs/development/python-modules/img2pdf/default.nix @@ -1,10 +1,9 @@ -{ stdenv, python3Packages }: +{ lib, pillow, fetchPypi, buildPythonPackage, isPy27 }: -with python3Packages; - -buildPythonApplication rec { +buildPythonPackage rec { pname = "img2pdf"; version = "0.3.6"; + disabled = isPy27; src = fetchPypi { inherit pname version; @@ -15,7 +14,7 @@ buildPythonApplication rec { pillow ]; - meta = with stdenv.lib; { + meta = with lib; { description = "Convert images to PDF via direct JPEG inclusion"; homepage = "https://gitlab.mister-muffin.de/josch/img2pdf"; license = licenses.lgpl2; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 8587ee041891..20c2ed3cacd6 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -20590,7 +20590,7 @@ in inherit (nodePackages) imapnotify; - img2pdf = callPackage ../applications/misc/img2pdf { }; + img2pdf = with python3Packages; toPythonApplication img2pdf; imgcat = callPackage ../applications/graphics/imgcat { }; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 62e79e83d6c9..ebf2585bfffe 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2433,6 +2433,8 @@ in { impacket = callPackage ../development/python-modules/impacket { }; + img2pdf = callPackage ../development/python-modules/img2pdf { }; + jsonlines = callPackage ../development/python-modules/jsonlines { }; json-merge-patch = callPackage ../development/python-modules/json-merge-patch { };