Commit a511a273 authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python312Packages.pgspecial: refactor

parent 2ce3adff
Loading
Loading
Loading
Loading
+15 −6
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, psycopg
, click
, configobj
, fetchPypi
, psycopg
, pytestCheckHook
, pythonOlder
, setuptools
, sqlparse
}:

buildPythonPackage rec {
  pname = "pgspecial";
  version = "2.1.2";
  format = "setuptools";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-8EGeGzt4+zpy/jtUb2eIpxIJFTLVmf51k7X27lWoj4c=";
  };

  propagatedBuildInputs = [
  build-system = [
    setuptools
  ];

  dependencies = [
    click
    sqlparse
    psycopg
@@ -30,13 +38,14 @@ buildPythonPackage rec {
  ];

  disabledTests = [
    # requires a postgresql server
    # Test requires a Postgresql server
    "test_slash_dp_pattern_schema"
  ];

  meta = with lib; {
    description = "Meta-commands handler for Postgres Database";
    homepage = "https://github.com/dbcli/pgspecial";
    changelog = "https://github.com/dbcli/pgspecial/releases/tag/v${version}";
    license = licenses.bsd3;
    maintainers = with maintainers; [ ];
  };