1{ lib
2, buildPythonPackage
3, fetchPypi
4, isPy27
5}:
6
7buildPythonPackage rec {
8 pname = "pq";
9 version = "1.8.2";
10 disabled = isPy27;
11
12 src = fetchPypi {
13 inherit pname version;
14 sha256 = "f54143844e73f4182532e68548dee447dd78dd00310a087e8cdee756d476a173";
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}