1{ lib 2, fetchPypi 3, buildPythonPackage 4, pytestCheckHook 5, pythonOlder 6}: 7 8buildPythonPackage rec { 9 pname = "python-sql"; 10 version = "1.4.2"; 11 format = "setuptools"; 12 13 disabled = pythonOlder "3.7"; 14 15 src = fetchPypi { 16 inherit pname version; 17 hash = "sha256-stuHXGcgwblayCyD6lLOu5RMQHvmii7wN8zdi6ucxTw="; 18 }; 19 20 nativeCheckInputs = [ 21 pytestCheckHook 22 ]; 23 24 pythonImportsCheck = [ 25 "sql" 26 ]; 27 28 meta = with lib; { 29 description = "Library to write SQL queries in a pythonic way"; 30 homepage = "https://foss.heptapod.net/tryton/python-sql"; 31 changelog = "https://foss.heptapod.net/tryton/python-sql/-/blob/${version}/CHANGELOG"; 32 license = licenses.bsd3; 33 maintainers = with maintainers; [ johbo ]; 34 }; 35}