2019-10-22 20:28:15 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchFromGitHub, fetchpatch
|
2017-07-28 08:05:23 +01:00
|
|
|
, sqlite, isPyPy }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "apsw";
|
2019-10-22 20:28:15 +01:00
|
|
|
version = "3.29.0-r1";
|
2017-07-28 08:05:23 +01:00
|
|
|
|
|
|
|
disabled = isPyPy;
|
|
|
|
|
2018-04-13 08:43:57 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rogerbinns";
|
|
|
|
repo = "apsw";
|
|
|
|
rev = version;
|
2019-10-22 20:28:15 +01:00
|
|
|
sha256 = "1p3sgmk9qwd0a634lirva44qgpyq0a74r9d70wxb6hsa52yjj9xb";
|
2017-07-28 08:05:23 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ sqlite ];
|
|
|
|
|
2019-10-22 20:28:15 +01:00
|
|
|
patches = [
|
|
|
|
# Fixes a test failure with sqlite 3.30, see https://github.com/rogerbinns/apsw/issues/275
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/rogerbinns/apsw/commit/13df0b57bff59542978abf7c0a440c9274e3aac3.diff";
|
|
|
|
sha256 = "1wi1mfis2mr21389wdnvq44phg0bpm5vpwmxhvrj211vwfm0q7dv";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2017-07-28 08:05:23 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A Python wrapper for the SQLite embedded relational database engine";
|
2018-04-13 08:43:57 +01:00
|
|
|
homepage = https://github.com/rogerbinns/apsw;
|
|
|
|
license = licenses.zlib;
|
2017-07-28 08:05:23 +01:00
|
|
|
};
|
|
|
|
}
|