bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
45 lines
1 KiB
Nix
45 lines
1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
python,
|
|
pythonOlder,
|
|
setuptools,
|
|
sqlite,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "apsw";
|
|
version = "3.46.0.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rogerbinns";
|
|
repo = "apsw";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-x1nG13RDJ5fZ3Eds7yYKcFQ3B+5YKxvMvXrAbXw4bSc=";
|
|
};
|
|
|
|
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 = "Python wrapper for the SQLite embedded relational database engine";
|
|
homepage = "https://github.com/rogerbinns/apsw";
|
|
license = licenses.zlib;
|
|
maintainers = with maintainers; [ gador ];
|
|
};
|
|
}
|