2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, passlib
|
2021-03-09 03:18:52 +00:00
|
|
|
, pythonOlder
|
|
|
|
, scramp
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pg8000";
|
2021-03-09 03:18:52 +00:00
|
|
|
version = "1.18.0";
|
|
|
|
disabled = pythonOlder "3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-09 03:18:52 +00:00
|
|
|
sha256 = "1nkjxf95ldda41mkmahbikhd1fvxai5lfjb4a5gyhialpz4g5fim";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-11-19 00:13:47 +00:00
|
|
|
propagatedBuildInputs = [ passlib scramp ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
# Tests require a running PostgreSQL instance
|
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "pg8000" ];
|
|
|
|
|
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";
|
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;
|
|
|
|
};
|
|
|
|
}
|