42 lines
811 B
Nix
42 lines
811 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
poetry-core,
|
|
psycopg,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "harlequin-postgres";
|
|
version = "0.4.0";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
pname = "harlequin_postgres";
|
|
inherit version;
|
|
hash = "sha256-1y8S3z6ZTt+PZg75aB/bKnEPdAtqjZ2IqyBtUBk8IFA=";
|
|
};
|
|
|
|
build-system = [
|
|
poetry-core
|
|
];
|
|
|
|
dependencies = [
|
|
psycopg
|
|
psycopg.pool
|
|
];
|
|
|
|
# To prevent circular dependency
|
|
# as harlequin-postgres requires harlequin which requires harlequin-postgres
|
|
doCheck = false;
|
|
pythonRemoveDeps = [
|
|
"harlequin"
|
|
];
|
|
|
|
meta = {
|
|
description = "A Harlequin adapter for Postgres";
|
|
homepage = "https://pypi.org/project/harlequin-postgres/";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ pcboy ];
|
|
};
|
|
}
|