2019-12-29 18:07:21 +00:00
|
|
|
{ lib
|
|
|
|
, aiounittest
|
2021-01-04 02:59:15 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2019-12-29 18:07:21 +00:00
|
|
|
, isPy27
|
2021-01-04 02:59:15 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, typing-extensions
|
2019-12-29 18:07:21 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aiosqlite";
|
2021-01-04 02:59:15 +00:00
|
|
|
version = "0.16.0";
|
2019-12-29 18:07:21 +00:00
|
|
|
disabled = isPy27;
|
|
|
|
|
2021-01-04 02:59:15 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "1a0fjmlvadyzsml10g5p1qif7192k0swy5zwjp8v48y5zc3yy56h";
|
2019-12-29 18:07:21 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
aiounittest
|
2021-01-04 02:59:15 +00:00
|
|
|
pytestCheckHook
|
|
|
|
typing-extensions
|
2019-12-29 18:07:21 +00:00
|
|
|
];
|
|
|
|
|
2021-01-04 02:59:15 +00:00
|
|
|
# tests are not pick-up automatically by the hook
|
|
|
|
pytestFlagsArray = [ "aiosqlite/tests/*.py" ];
|
|
|
|
|
2019-12-29 18:07:21 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Asyncio bridge to the standard sqlite3 module";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/jreese/aiosqlite";
|
2019-12-29 18:07:21 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|