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