2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-26 01:25:00 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2019-04-27 05:47:38 +00:00
|
|
|
, passlib
|
2021-03-06 22:33:01 +00:00
|
|
|
, pythonOlder
|
|
|
|
, scramp
|
2018-10-26 01:25:00 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pg8000";
|
2021-10-14 13:22:23 +00:00
|
|
|
version = "1.22.0";
|
2021-03-06 22:33:01 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2019-04-27 05:47:38 +00:00
|
|
|
|
2018-10-26 01:25:00 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-10-14 13:22:23 +00:00
|
|
|
sha256 = "c5172252fc92142ec104cd5e7231be4580a1a0a814403707bafbf7bb8383a29a";
|
2018-10-26 01:25:00 +00:00
|
|
|
};
|
|
|
|
|
2021-04-22 10:02:49 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
passlib
|
|
|
|
scramp
|
|
|
|
];
|
2021-03-29 19:39:21 +00:00
|
|
|
|
2021-02-24 08:36:30 +00:00
|
|
|
# Tests require a running PostgreSQL instance
|
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "pg8000" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2021-02-24 09:13:54 +00:00
|
|
|
description = "Python driver for PostgreSQL";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/tlocke/pg8000";
|
2021-02-24 09:13:54 +00:00
|
|
|
license = with licenses; [ bsd3 ];
|
2019-07-03 09:27:39 +00:00
|
|
|
maintainers = with maintainers; [ domenkozar ];
|
2019-02-17 13:00:33 +00:00
|
|
|
platforms = platforms.unix;
|
2018-10-26 01:25:00 +00:00
|
|
|
};
|
|
|
|
}
|