6d4aeb4377
GitOrigin-RevId: 0f213d0fee84280d8c3a97f7469b988d6fe5fcdf
49 lines
981 B
Nix
49 lines
981 B
Nix
{ lib
|
|
, aiounittest
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, flit-core
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aiosqlite";
|
|
version = "0.18.0";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "omnilib";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-yPGSKqjOz1EY5/V0oKz2EiZ90q2O4TINoXdxHuB7Gqk=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
flit-core
|
|
];
|
|
|
|
checkInputs = [
|
|
aiounittest
|
|
pytestCheckHook
|
|
];
|
|
|
|
# Tests are not pick-up automatically by the hook
|
|
pytestFlagsArray = [
|
|
"aiosqlite/tests/*.py"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"aiosqlite"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Asyncio bridge to the standard sqlite3 module";
|
|
homepage = "https://github.com/jreese/aiosqlite";
|
|
changelog = "https://github.com/omnilib/aiosqlite/blob/v${version}/CHANGELOG.md";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ costrouc ];
|
|
};
|
|
}
|