Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
42 lines
1.0 KiB
Nix
42 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchurl,
|
|
setuptools,
|
|
sqlite,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "apsw";
|
|
version = "3.48.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-iwvUW6vOQu2EiUuYWVaz5D3ePSLrj81fmLxoGRaTzRk=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|