2020-07-21 16:08:04 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, isPy27
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pq";
|
2020-08-16 18:31:10 +01:00
|
|
|
version = "1.8.2";
|
2020-07-21 16:08:04 +01:00
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-08-16 18:31:10 +01:00
|
|
|
sha256 = "f54143844e73f4182532e68548dee447dd78dd00310a087e8cdee756d476a173";
|
2020-07-21 16:08:04 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
# tests require running postgresql cluster
|
|
|
|
doCheck = false;
|
2020-09-10 21:56:40 +01:00
|
|
|
pythonImportsCheck = [ "pq" ];
|
2020-07-21 16:08:04 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "PQ is a transactional queue for PostgreSQL";
|
|
|
|
homepage = https://github.com/malthe/pq/;
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|