lol

python312Packages.pgspecial: refactor

+15 -6
+15 -6
pkgs/development/python-modules/pgspecial/default.nix
··· 1 { lib 2 , buildPythonPackage 3 , fetchPypi 4 - , pytestCheckHook 5 , psycopg 6 - , click 7 - , configobj 8 , sqlparse 9 }: 10 11 buildPythonPackage rec { 12 pname = "pgspecial"; 13 version = "2.1.2"; 14 - format = "setuptools"; 15 16 src = fetchPypi { 17 inherit pname version; 18 hash = "sha256-8EGeGzt4+zpy/jtUb2eIpxIJFTLVmf51k7X27lWoj4c="; 19 }; 20 21 - propagatedBuildInputs = [ 22 click 23 sqlparse 24 psycopg ··· 30 ]; 31 32 disabledTests = [ 33 - # requires a postgresql server 34 "test_slash_dp_pattern_schema" 35 ]; 36 37 meta = with lib; { 38 description = "Meta-commands handler for Postgres Database"; 39 homepage = "https://github.com/dbcli/pgspecial"; 40 license = licenses.bsd3; 41 maintainers = with maintainers; [ ]; 42 };
··· 1 { lib 2 , buildPythonPackage 3 + , click 4 + , configobj 5 , fetchPypi 6 , psycopg 7 + , pytestCheckHook 8 + , pythonOlder 9 + , setuptools 10 , sqlparse 11 }: 12 13 buildPythonPackage rec { 14 pname = "pgspecial"; 15 version = "2.1.2"; 16 + pyproject = true; 17 + 18 + disabled = pythonOlder "3.7"; 19 20 src = fetchPypi { 21 inherit pname version; 22 hash = "sha256-8EGeGzt4+zpy/jtUb2eIpxIJFTLVmf51k7X27lWoj4c="; 23 }; 24 25 + build-system = [ 26 + setuptools 27 + ]; 28 + 29 + dependencies = [ 30 click 31 sqlparse 32 psycopg ··· 38 ]; 39 40 disabledTests = [ 41 + # Test requires a Postgresql server 42 "test_slash_dp_pattern_schema" 43 ]; 44 45 meta = with lib; { 46 description = "Meta-commands handler for Postgres Database"; 47 homepage = "https://github.com/dbcli/pgspecial"; 48 + changelog = "https://github.com/dbcli/pgspecial/releases/tag/v${version}"; 49 license = licenses.bsd3; 50 maintainers = with maintainers; [ ]; 51 };