blob: c7e0e5ef3a1c66ee2a8b5727ff932cab863d8663 (
plain)
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
|
{
lib,
buildPythonPackage,
fetchurl,
setuptools,
sqlite,
}:
buildPythonPackage rec {
pname = "apsw";
version = "3.51.0.0";
pyproject = true;
# https://github.com/rogerbinns/apsw/issues/548
src = fetchurl {
url = "https://github.com/rogerbinns/apsw/releases/download/${version}/apsw-${version}.tar.gz";
hash = "sha256-8I1/HnGO9eOs9CUFwvN5BcpHtCxXD7qlF9WBA4E1Rls=";
};
build-system = [ setuptools ];
buildInputs = [ sqlite ];
# apsw explicitly doesn't use pytest
# see https://github.com/rogerbinns/apsw/issues/548#issuecomment-2891633403
checkPhase = ''
runHook preCheck
python -m apsw.tests
runHook postCheck
'';
pythonImportsCheck = [ "apsw" ];
meta = {
changelog = "https://github.com/rogerbinns/apsw/blob/${version}/doc/changes.rst";
description = "Python wrapper for the SQLite embedded relational database engine";
homepage = "https://github.com/rogerbinns/apsw";
license = lib.licenses.zlib;
maintainers = with lib.maintainers; [ gador ];
};
}
|