at master 1.0 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchurl, 5 setuptools, 6 sqlite, 7}: 8 9buildPythonPackage rec { 10 pname = "apsw"; 11 version = "3.48.0.0"; 12 pyproject = true; 13 14 # https://github.com/rogerbinns/apsw/issues/548 15 src = fetchurl { 16 url = "https://github.com/rogerbinns/apsw/releases/download/${version}/apsw-${version}.tar.gz"; 17 hash = "sha256-iwvUW6vOQu2EiUuYWVaz5D3ePSLrj81fmLxoGRaTzRk="; 18 }; 19 20 build-system = [ setuptools ]; 21 22 buildInputs = [ sqlite ]; 23 24 # apsw explicitly doesn't use pytest 25 # see https://github.com/rogerbinns/apsw/issues/548#issuecomment-2891633403 26 checkPhase = '' 27 runHook preCheck 28 python -m apsw.tests 29 runHook postCheck 30 ''; 31 32 pythonImportsCheck = [ "apsw" ]; 33 34 meta = { 35 changelog = "https://github.com/rogerbinns/apsw/blob/${version}/doc/changes.rst"; 36 description = "Python wrapper for the SQLite embedded relational database engine"; 37 homepage = "https://github.com/rogerbinns/apsw"; 38 license = lib.licenses.zlib; 39 maintainers = with lib.maintainers; [ gador ]; 40 }; 41}