Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 python, 6 pythonOlder, 7 setuptools, 8 sqlite, 9}: 10 11buildPythonPackage rec { 12 pname = "apsw"; 13 version = "3.46.0.1"; 14 pyproject = true; 15 16 disabled = pythonOlder "3.8"; 17 18 src = fetchFromGitHub { 19 owner = "rogerbinns"; 20 repo = "apsw"; 21 rev = "refs/tags/${version}"; 22 hash = "sha256-GcfHkK4TCHPA2K6ymXtpCwNUCCUq0vq98UjYGGwn588="; 23 }; 24 25 build-system = [ setuptools ]; 26 27 buildInputs = [ sqlite ]; 28 29 # Project uses custom test setup to exclude some tests by default, so using pytest 30 # requires more maintenance 31 # https://github.com/rogerbinns/apsw/issues/335 32 checkPhase = '' 33 ${python.interpreter} setup.py test 34 ''; 35 36 pythonImportsCheck = [ "apsw" ]; 37 38 meta = with lib; { 39 changelog = "https://github.com/rogerbinns/apsw/blob/${src.rev}/doc/changes.rst"; 40 description = "Python wrapper for the SQLite embedded relational database engine"; 41 homepage = "https://github.com/rogerbinns/apsw"; 42 license = licenses.zlib; 43 maintainers = with maintainers; [ gador ]; 44 }; 45}