at 23.11-beta 921 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, sqlite 5, isPyPy 6, python 7}: 8 9buildPythonPackage rec { 10 pname = "apsw"; 11 version = "3.43.1.0"; 12 format = "setuptools"; 13 14 disabled = isPyPy; 15 16 src = fetchFromGitHub { 17 owner = "rogerbinns"; 18 repo = "apsw"; 19 rev = "refs/tags/${version}"; 20 hash = "sha256-x+bSft37DgF2tXXCL6ac86g1+mj/wJeDLoCSiVSXedA="; 21 }; 22 23 buildInputs = [ 24 sqlite 25 ]; 26 27 # Project uses custom test setup to exclude some tests by default, so using pytest 28 # requires more maintenance 29 # https://github.com/rogerbinns/apsw/issues/335 30 checkPhase = '' 31 ${python.interpreter} setup.py test 32 ''; 33 34 pythonImportsCheck = [ 35 "apsw" 36 ]; 37 38 meta = with lib; { 39 description = "A Python wrapper for the SQLite embedded relational database engine"; 40 homepage = "https://github.com/rogerbinns/apsw"; 41 license = licenses.zlib; 42 maintainers = with maintainers; [ gador ]; 43 }; 44}