diff --git a/pkgs/development/python-modules/pg8000/default.nix b/pkgs/development/python-modules/pg8000/default.nix new file mode 100644 index 000000000000..65301a8c4067 --- /dev/null +++ b/pkgs/development/python-modules/pg8000/default.nix @@ -0,0 +1,25 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, pytz +}: + +buildPythonPackage rec { + pname = "pg8000"; + version = "1.10.1"; + + src = fetchPypi { + inherit pname version; + sha256 = "188658db63c2ca931ae1bf0167b34efaac0ecc743b707f0118cc4b87e90ce488"; + }; + + propagatedBuildInputs = [ pytz ]; + + meta = with stdenv.lib; { + homepage = https://github.com/realazthat/aiopg8000; + description = "PostgreSQL interface library, for asyncio"; + maintainers = with maintainers; [ garbas domenkozar ]; + platforms = platforms.linux; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 2fd95d1970cd..e46b7faab719 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3135,23 +3135,9 @@ in { pdfkit = callPackage ../development/python-modules/pdfkit { }; - periodictable = callPackage ../development/python-modules/periodictable { }; + periodictable = callPackage ../development/python-modules/periodictable { }; - pg8000 = buildPythonPackage rec { - name = "pg8000-1.10.1"; - - src = pkgs.fetchurl { - url = "mirror://pypi/p/pg8000/${name}.tar.gz"; - sha256 = "188658db63c2ca931ae1bf0167b34efaac0ecc743b707f0118cc4b87e90ce488"; - }; - - propagatedBuildInputs = with self; [ pytz ]; - - meta = { - maintainers = with maintainers; [ garbas domenkozar ]; - platforms = platforms.linux; - }; - }; + pg8000 = callPackage ../development/python-modules/pg8000 { }; pgspecial = callPackage ../development/python-modules/pgspecial { };