1{ lib
2, buildPythonPackage
3, fetchPypi
4, isPy27
5}:
6
7buildPythonPackage rec {
8 pname = "pq";
9 version = "1.9.0";
10 disabled = isPy27;
11
12 src = fetchPypi {
13 inherit pname version;
14 sha256 = "c664ee3a9a25efcb583e3d1d797588fb7c2fb5096220689eec78a7946b01b5ff";
15 };
16
17 # tests require running postgresql cluster
18 doCheck = false;
19 pythonImportsCheck = [ "pq" ];
20
21 meta = with lib; {
22 description = "PQ is a transactional queue for PostgreSQL";
23 homepage = "https://github.com/malthe/pq/";
24 license = licenses.bsd3;
25 maintainers = [ maintainers.costrouc ];
26 };
27}