2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2022-06-16 17:23:12 +00:00
|
|
|
, importlib-metadata
|
2020-04-24 23:36:52 +00:00
|
|
|
, passlib
|
2022-10-21 18:38:19 +00:00
|
|
|
, python-dateutil
|
2021-03-09 03:18:52 +00:00
|
|
|
, pythonOlder
|
|
|
|
, scramp
|
2022-09-30 11:47:45 +00:00
|
|
|
, setuptools
|
2023-10-09 19:29:22 +00:00
|
|
|
, versioningit
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pg8000";
|
2022-12-28 21:21:41 +00:00
|
|
|
version = "1.29.4";
|
2022-06-16 17:23:12 +00:00
|
|
|
format = "pyproject";
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-12-28 21:21:41 +00:00
|
|
|
hash = "sha256-dtKqF1ejC8ceAwfa4Yw3TjNqaRI+awRuIGqWYR+iozA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
2023-10-09 19:29:22 +00:00
|
|
|
versioningit
|
2022-09-30 11:47:45 +00:00
|
|
|
];
|
|
|
|
|
2021-04-25 03:57:28 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
passlib
|
2022-10-21 18:38:19 +00:00
|
|
|
python-dateutil
|
2021-04-25 03:57:28 +00:00
|
|
|
scramp
|
2022-06-16 17:23:12 +00:00
|
|
|
] ++ lib.optionals (pythonOlder "3.8") [
|
|
|
|
importlib-metadata
|
2021-04-25 03:57:28 +00:00
|
|
|
];
|
2021-03-20 04:20:00 +00:00
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
# Tests require a running PostgreSQL instance
|
|
|
|
doCheck = false;
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"pg8000"
|
|
|
|
];
|
2021-03-09 03:18:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-03-09 03:18:52 +00:00
|
|
|
description = "Python driver for PostgreSQL";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/tlocke/pg8000";
|
2022-12-28 21:21:41 +00:00
|
|
|
changelog = "https://github.com/tlocke/pg8000#release-notes";
|
2021-03-09 03:18:52 +00:00
|
|
|
license = with licenses; [ bsd3 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ domenkozar ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|