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