2020-08-20 17:08:02 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, isPy27
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pq";
|
2023-04-12 12:48:02 +00:00
|
|
|
version = "1.9.1";
|
2020-08-20 17:08:02 +00:00
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-04-12 12:48:02 +00:00
|
|
|
sha256 = "sha256-1krw77ij69EbLg5mKmQmxeHpn38uRG9EOboGmRk+StY=";
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# tests require running postgresql cluster
|
|
|
|
doCheck = false;
|
2020-09-25 04:45:31 +00:00
|
|
|
pythonImportsCheck = [ "pq" ];
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "PQ is a transactional queue for PostgreSQL";
|
2020-10-16 20:44:37 +00:00
|
|
|
homepage = "https://github.com/malthe/pq/";
|
2020-08-20 17:08:02 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|