depot/third_party/nixpkgs/pkgs/development/python-modules/aiosqlite/default.nix
Default email 5e9e1146e1 Project import generated by Copybara.
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
2023-08-05 00:07:22 +02:00

49 lines
978 B
Nix

{ lib
, aiounittest
, buildPythonPackage
, fetchFromGitHub
, flit-core
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "aiosqlite";
version = "0.19.0";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "omnilib";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-dm7uqG59FP40hcQt+R7qfQiD8P42AYZ2WcH1RoEC5wQ=";
};
nativeBuildInputs = [
flit-core
];
nativeCheckInputs = [
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; [ ];
};
}