Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / aiosqlite / default.nix
blobbd16b06895a61a022bbf066860935aeea73a9c2e
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , flit-core
5 , pytestCheckHook
6 , pythonOlder
7 , typing-extensions
8 }:
10 buildPythonPackage rec {
11   pname = "aiosqlite";
12   version = "0.20.0";
13   format = "pyproject";
15   disabled = pythonOlder "3.8";
17   src = fetchFromGitHub {
18     owner = "omnilib";
19     repo = pname;
20     rev = "refs/tags/v${version}";
21     hash = "sha256-JQ9iNxK7FvBhPyr825d+8P5ZYFztDIX3gOwp4FPfyU4=";
22   };
24   nativeBuildInputs = [
25     flit-core
26   ];
28   propagatedBuildInputs = [
29     typing-extensions
30   ];
32   nativeCheckInputs = [
33     pytestCheckHook
34   ];
36   # Tests are not pick-up automatically by the hook
37   pytestFlagsArray = [
38     "aiosqlite/tests/*.py"
39   ];
41   pythonImportsCheck = [
42     "aiosqlite"
43   ];
45   meta = with lib; {
46     description = "Asyncio bridge to the standard sqlite3 module";
47     homepage = "https://github.com/jreese/aiosqlite";
48     changelog = "https://github.com/omnilib/aiosqlite/blob/v${version}/CHANGELOG.md";
49     license = licenses.mit;
50     maintainers = with maintainers; [ ];
51   };