2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-26 02:25:00 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-11-06 05:19:21 +00:00
|
|
|
, scramp
|
2019-04-27 06:47:38 +01:00
|
|
|
, isPy3k
|
|
|
|
, passlib
|
2018-10-26 02:25:00 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pg8000";
|
2021-02-24 08:36:30 +00:00
|
|
|
version = "1.17.0";
|
2019-04-27 06:47:38 +01:00
|
|
|
disabled = !isPy3k;
|
|
|
|
|
2018-10-26 02:25:00 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-02-24 08:36:30 +00:00
|
|
|
sha256 = "sha256-FBmMWv6yiRBuQO5uXkwFKcU2mTn2yliKAos3GnX+IN0=";
|
2018-10-26 02:25:00 +01:00
|
|
|
};
|
|
|
|
|
2020-11-06 05:19:21 +00:00
|
|
|
propagatedBuildInputs = [ passlib scramp ];
|
2018-10-26 02:25:00 +01: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 02:11:51 +01:00
|
|
|
homepage = "https://github.com/tlocke/pg8000";
|
2021-02-24 09:13:54 +00:00
|
|
|
license = with licenses; [ bsd3 ];
|
2019-07-03 10:27:39 +01:00
|
|
|
maintainers = with maintainers; [ domenkozar ];
|
2019-02-17 13:00:33 +00:00
|
|
|
platforms = platforms.unix;
|
2018-10-26 02:25:00 +01:00
|
|
|
};
|
|
|
|
}
|