58f8944c92
GitOrigin-RevId: 5aba0fe9766a7201a336249fd6cb76e0d7ba2faf
27 lines
579 B
Nix
27 lines
579 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, isPy27
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pq";
|
|
version = "1.8.2";
|
|
disabled = isPy27;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "f54143844e73f4182532e68548dee447dd78dd00310a087e8cdee756d476a173";
|
|
};
|
|
|
|
# tests require running postgresql cluster
|
|
doCheck = false;
|
|
pythonImportsCheck = [ "pq" ];
|
|
|
|
meta = with lib; {
|
|
description = "PQ is a transactional queue for PostgreSQL";
|
|
homepage = https://github.com/malthe/pq/;
|
|
license = licenses.bsd3;
|
|
maintainers = [ maintainers.costrouc ];
|
|
};
|
|
}
|