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-03-29 12:39:21 -07:00
|
|
|
version = "1.19.0";
|
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-03-29 12:39:21 -07:00
|
|
|
sha256 = "sha256-EexwwLIOpECAfiyGmUDxSE7qk9cbQ1gHtjhW3YK3RN0=";
|
2018-10-25 18:25:00 -07:00
|
|
|
};
|
|
|
|
|
2021-03-29 12:39:21 -07:00
|
|
|
propagatedBuildInputs = [passlib scramp ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "scramp==1.3.0" "scramp>=1.3.0"
|
|
|
|
'';
|
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
|
|
|
};
|
|
|
|
}
|