Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / pg8000 / default.nix
blob3bd937c6d492fcb8ff2c9e4812664b11f67c0f7a
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , importlib-metadata
5 , passlib
6 , python-dateutil
7 , pythonOlder
8 , scramp
9 , setuptools
10 , versioningit
13 buildPythonPackage rec {
14   pname = "pg8000";
15   version = "1.30.5";
16   format = "pyproject";
18   disabled = pythonOlder "3.7";
20   src = fetchPypi {
21     inherit pname version;
22     hash = "sha256-By960AzXI2lcsun8AsHfuEx4FFXpe43m9MQoHuoIB4w=";
23   };
25   nativeBuildInputs = [
26     setuptools
27     versioningit
28   ];
30   propagatedBuildInputs = [
31     passlib
32     python-dateutil
33     scramp
34   ] ++ lib.optionals (pythonOlder "3.8") [
35     importlib-metadata
36   ];
38   # Tests require a running PostgreSQL instance
39   doCheck = false;
41   pythonImportsCheck = [
42     "pg8000"
43   ];
45   meta = with lib; {
46     description = "Python driver for PostgreSQL";
47     homepage = "https://github.com/tlocke/pg8000";
48     changelog = "https://github.com/tlocke/pg8000#release-notes";
49     license = with licenses; [ bsd3 ];
50     maintainers = with maintainers; [ domenkozar ];
51     platforms = platforms.unix;
52   };