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