lol

python312Packages.sqlalchemy-i18n: refactor

+25 -6
+25 -6
pkgs/development/python-modules/sqlalchemy-i18n/default.nix
··· 2 2 lib, 3 3 fetchPypi, 4 4 buildPythonPackage, 5 + setuptools, 5 6 sqlalchemy, 6 7 sqlalchemy-utils, 7 8 six, 9 + postgresql, 10 + postgresqlTestHook, 11 + psycopg2, 12 + pytestCheckHook, 8 13 }: 9 14 10 15 buildPythonPackage rec { 11 16 pname = "sqlalchemy-i18n"; 12 17 version = "1.1.0"; 18 + pyproject = true; 13 19 14 20 src = fetchPypi { 15 21 pname = "SQLAlchemy-i18n"; 16 22 inherit version; 17 - sha256 = "de33376483a581ca14218d8f57a114466c5f72b674a95839b6c4564a6e67796f"; 23 + hash = "sha256-3jM3ZIOlgcoUIY2PV6EURmxfcrZ0qVg5tsRWSm5neW8="; 18 24 }; 19 25 20 - propagatedBuildInputs = [ 26 + build-system = [ setuptools ]; 27 + 28 + dependencies = [ 21 29 sqlalchemy 22 30 sqlalchemy-utils 23 31 six 24 32 ]; 25 33 26 - # tests require running a postgresql server 27 - doCheck = false; 34 + pythonImportsCheck = [ "sqlalchemy_i18n" ]; 35 + 36 + nativeCheckInputs = [ 37 + postgresql 38 + postgresqlTestHook 39 + psycopg2 40 + pytestCheckHook 41 + ]; 42 + 43 + env = { 44 + PGDATABASE = "sqlalchemy_i18n_test"; 45 + postgresqlEnableTCP = 1; 46 + }; 28 47 29 - meta = with lib; { 48 + meta = { 30 49 homepage = "https://github.com/kvesteri/sqlalchemy-i18n"; 31 50 description = "Internationalization extension for SQLAlchemy models"; 32 - license = licenses.bsd3; 51 + license = lib.licenses.bsd3; 33 52 }; 34 53 }