diff options
Diffstat (limited to 'pkgs/development/python-modules/sqlite-anyio')
-rw-r--r-- | pkgs/development/python-modules/sqlite-anyio/default.nix | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/sqlite-anyio/default.nix b/pkgs/development/python-modules/sqlite-anyio/default.nix new file mode 100644 index 0000000000000..bc9fd2ffcb230 --- /dev/null +++ b/pkgs/development/python-modules/sqlite-anyio/default.nix @@ -0,0 +1,44 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + hatchling, + anyio, + pytestCheckHook, + trio, +}: + +buildPythonPackage rec { + pname = "sqlite-anyio"; + version = "0.2.2"; + pyproject = true; + + disabled = pythonOlder "3.8"; + + src = fetchFromGitHub { + owner = "davidbrochart"; + repo = "sqlite-anyio"; + rev = "refs/tags/v${version}"; + hash = "sha256-lOUGT9SUxvzTvTDpiwx7Oa+0o3/lnrJ9xxMYFQAmFZk="; + }; + + build-system = [ hatchling ]; + + dependencies = [ anyio ]; + + pythonImportsCheck = [ "sqlite_anyio" ]; + + nativeCheckInputs = [ + pytestCheckHook + trio + ]; + + meta = with lib; { + description = "Asynchronous client for SQLite using AnyIO"; + homepage = "https://github.com/davidbrochart/sqlite-anyio"; + changelog = "https://github.com/davidbrochart/sqlite-anyio/releases/tag/v${version}"; + license = licenses.mit; + maintainers = with maintainers; [ ]; + }; +} |