blob: 41eb2ade77edac5a686c374ff19a3fecb42db375 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
python,
pythonOlder,
setuptools,
sqlite,
}:
buildPythonPackage rec {
pname = "apsw";
version = "3.45.3.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "rogerbinns";
repo = "apsw";
rev = "refs/tags/${version}";
hash = "sha256-7z9JXJn2a6RJAc+7KrkzzScrNmbb06ud6L1rBinzkP8=";
};
build-system = [ setuptools ];
buildInputs = [ sqlite ];
# 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
'';
pythonImportsCheck = [ "apsw" ];
meta = with lib; {
changelog = "https://github.com/rogerbinns/apsw/blob/${src.rev}/doc/changes.rst";
description = "A Python wrapper for the SQLite embedded relational database engine";
homepage = "https://github.com/rogerbinns/apsw";
license = licenses.zlib;
maintainers = with maintainers; [ gador ];
};
}
|