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-02-24 08:43:55 +00:00
|
|
|
version = "0.17.0";
|
2019-12-29 18:07:21 +00:00
|
|
|
disabled = isPy27;
|
|
|
|
|
2021-01-04 02:59:15 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-02-24 08:43:55 +00:00
|
|
|
sha256 = "sha256-8OaswkvEhkFJJnrIL7Rt+zvkRV+Z/iHfgmCcxua67lE=";
|
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" ];
|
|
|
|
|
2021-02-24 08:43:55 +00:00
|
|
|
pythonImportsCheck = [ "aiosqlite" ];
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|