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