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