diff --git a/doc/languages-frameworks/python.section.md b/doc/languages-frameworks/python.section.md index ce83102acd84a..833ff45c746ec 100644 --- a/doc/languages-frameworks/python.section.md +++ b/doc/languages-frameworks/python.section.md @@ -369,8 +369,11 @@ In nixpkgs this is used to package Python packages with split binary/source dist ```nix mkPythonMetaPackage { pname = "pscycopg2-binary"; - inherit (psycopg2) optional-dependencies version meta; + inherit (psycopg2) optional-dependencies version; dependencies = [ psycopg2 ]; + meta = { + inherit (psycopg2.meta) description homepage; + }; } ``` diff --git a/pkgs/development/python-modules/psycopg2-binary/default.nix b/pkgs/development/python-modules/psycopg2-binary/default.nix new file mode 100644 index 0000000000000..bf6afbfa845ca --- /dev/null +++ b/pkgs/development/python-modules/psycopg2-binary/default.nix @@ -0,0 +1,13 @@ +{ + mkPythonMetaPackage, + psycopg2, +}: +mkPythonMetaPackage { + pname = "pscycopg2-binary"; + inherit (psycopg2) version; + dependencies = [ psycopg2 ]; + optional-dependencies = psycopg2.optional-dependencies or { }; + meta = { + inherit (psycopg2.meta) description homepage; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 5ca278ddb429a..5292ba1d907ed 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -10952,6 +10952,8 @@ self: super: with self; { psycopg2cffi = callPackage ../development/python-modules/psycopg2cffi { }; + psycopg2-binary = callPackage ../development/python-modules/psycopg2-binary { }; + psygnal = callPackage ../development/python-modules/psygnal { }; ptable = callPackage ../development/python-modules/ptable { };