2021-11-30 14:40:31 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, sqlite
|
|
|
|
, isPyPy
|
2022-04-11 18:56:47 +00:00
|
|
|
, python
|
2021-11-30 14:40:31 +00:00
|
|
|
}:
|
2017-07-28 07:05:23 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "apsw";
|
2023-03-04 16:25:01 +00:00
|
|
|
version = "3.41.0.0";
|
2021-11-30 14:40:31 +00:00
|
|
|
format = "setuptools";
|
2017-07-28 07:05:23 +00:00
|
|
|
|
|
|
|
disabled = isPyPy;
|
|
|
|
|
2018-04-13 07:43:57 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rogerbinns";
|
|
|
|
repo = "apsw";
|
2022-07-16 10:58:57 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2023-03-04 16:25:01 +00:00
|
|
|
hash = "sha256-U7NhC83wBaUONLsQbL+j9866u4zs58O6AQxwzS3e0qM=";
|
2017-07-28 07:05:23 +00:00
|
|
|
};
|
|
|
|
|
2021-11-30 14:40:31 +00:00
|
|
|
buildInputs = [
|
|
|
|
sqlite
|
|
|
|
];
|
|
|
|
|
2022-04-11 18:56:47 +00:00
|
|
|
# Project uses custom test setup to exclude some tests by default, so using pytest
|
|
|
|
# requires more maintenance
|
|
|
|
# https://github.com/rogerbinns/apsw/issues/335
|
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} setup.py test
|
2022-03-06 19:03:15 +00:00
|
|
|
'';
|
|
|
|
|
2021-11-30 14:40:31 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"apsw"
|
|
|
|
];
|
2017-07-28 07:05:23 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-07-28 07:05:23 +00:00
|
|
|
description = "A Python wrapper for the SQLite embedded relational database engine";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/rogerbinns/apsw";
|
2018-04-13 07:43:57 +00:00
|
|
|
license = licenses.zlib;
|
2022-04-11 18:56:47 +00:00
|
|
|
maintainers = with maintainers; [ gador ];
|
2017-07-28 07:05:23 +00:00
|
|
|
};
|
|
|
|
}
|