2021-12-26 17:43:05 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, sqlite
|
|
|
|
, isPyPy
|
2022-04-27 09:35:20 +00:00
|
|
|
, python
|
2021-12-26 17:43:05 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "apsw";
|
2022-12-02 08:20:57 +00:00
|
|
|
version = "3.40.0.0";
|
2021-12-26 17:43:05 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
disabled = isPyPy;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rogerbinns";
|
|
|
|
repo = "apsw";
|
2022-08-12 12:06:08 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2022-12-02 08:20:57 +00:00
|
|
|
hash = "sha256-Bi2pW+8vFLcYnatlqsfnwqfCpV2cjannYaTqgIlfNNM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-12-26 17:43:05 +00:00
|
|
|
buildInputs = [
|
|
|
|
sqlite
|
|
|
|
];
|
|
|
|
|
2022-04-27 09:35:20 +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-04-15 01:41:22 +00:00
|
|
|
'';
|
|
|
|
|
2021-12-26 17:43:05 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"apsw"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A Python wrapper for the SQLite embedded relational database engine";
|
|
|
|
homepage = "https://github.com/rogerbinns/apsw";
|
|
|
|
license = licenses.zlib;
|
2022-04-27 09:35:20 +00:00
|
|
|
maintainers = with maintainers; [ gador ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|