2021-05-07 16:53:31 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytestCheckHook
|
2022-07-17 19:04:46 +00:00
|
|
|
, psycopg
|
2021-05-07 16:53:31 +00:00
|
|
|
, click
|
|
|
|
, configobj
|
|
|
|
, sqlparse
|
|
|
|
}:
|
2018-09-18 11:00:59 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pgspecial";
|
2023-04-10 12:51:19 +00:00
|
|
|
version = "2.1.0";
|
2018-09-18 11:00:59 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-04-10 12:51:19 +00:00
|
|
|
hash = "sha256-CZqcQ7V2iIWpnHYbHxSoxlBLsU6WMa2HVXOa2vdYJm8=";
|
2018-09-18 11:00:59 +00:00
|
|
|
};
|
|
|
|
|
2021-05-07 16:53:31 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
click
|
|
|
|
sqlparse
|
2022-07-17 19:04:46 +00:00
|
|
|
psycopg
|
2021-05-07 16:53:31 +00:00
|
|
|
];
|
2018-09-18 11:00:59 +00:00
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2021-05-07 16:53:31 +00:00
|
|
|
configobj
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2018-09-18 11:00:59 +00:00
|
|
|
|
2022-03-13 14:29:12 +00:00
|
|
|
disabledTests = [
|
|
|
|
# requires a postgresql server
|
|
|
|
"test_slash_dp_pattern_schema"
|
|
|
|
];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-09-18 11:00:59 +00:00
|
|
|
description = "Meta-commands handler for Postgres Database";
|
2022-07-17 19:04:46 +00:00
|
|
|
homepage = "https://github.com/dbcli/pgspecial";
|
2018-09-18 11:00:59 +00:00
|
|
|
license = licenses.bsd3;
|
2022-07-17 19:04:46 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2018-09-18 11:00:59 +00:00
|
|
|
};
|
|
|
|
}
|