2021-12-26 17:43:05 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, 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-04-27 09:35:20 +00:00
|
|
|
version = "3.38.1-r1";
|
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";
|
|
|
|
rev = version;
|
2022-04-27 09:35:20 +00:00
|
|
|
hash = "sha256-pbb6wCu1T1mPlgoydB1Y1AKv+kToGkdVUjiom2vTqf4=";
|
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
|
|
|
};
|
|
|
|
}
|