Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 35 lines 812 B view raw
1{ 2 lib, 3 fetchFromGitLab, 4 buildPythonPackage, 5 pytestCheckHook, 6 setuptools, 7}: 8 9buildPythonPackage rec { 10 pname = "python-sql"; 11 version = "1.7.0"; 12 pyproject = true; 13 14 src = fetchFromGitLab { 15 domain = "foss.heptapod.net"; 16 owner = "tryton"; 17 repo = "python-sql"; 18 tag = version; 19 hash = "sha256-JhMJEng6QftWBmJIC2pYlf9fkHHmSd3k0tSwr35MmVQ="; 20 }; 21 22 build-system = [ setuptools ]; 23 24 nativeCheckInputs = [ pytestCheckHook ]; 25 26 pythonImportsCheck = [ "sql" ]; 27 28 meta = { 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/${src.tag}/CHANGELOG"; 32 license = lib.licenses.bsd3; 33 maintainers = with lib.maintainers; [ johbo ]; 34 }; 35}