summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2024-01-22 09:50:01 +0100
committerFabian Affolter <mail@fabian-affolter.ch>2024-01-22 09:50:01 +0100
commit6b1fd2a49b2dc23faf2ffbf768a2bc4e014dffcd (patch)
treef810a52a2b8dc857c272cc1b9d296326b93205b6 /pkgs/development/python-modules
parent95386d1c13d13fc707bc4ab4165b67d810604ede (diff)
python311Packages.anysqlite: init at 0.0.5
Sqlite3 for asyncio and trio https://github.com/karpetrosyan/anysqlite
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r--pkgs/development/python-modules/anysqlite/default.nix51
1 files changed, 51 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/anysqlite/default.nix b/pkgs/development/python-modules/anysqlite/default.nix
new file mode 100644
index 000000000000..bf6cb41a7916
--- /dev/null
+++ b/pkgs/development/python-modules/anysqlite/default.nix
@@ -0,0 +1,51 @@
+{ lib
+, anyio
+, buildPythonPackage
+, fetchFromGitHub
+, hatch-fancy-pypi-readme
+, hatchling
+, pytestCheckHook
+, pythonOlder
+, trio
+}:
+
+buildPythonPackage rec {
+ pname = "anysqlite";
+ version = "0.0.5";
+ pyproject = true;
+
+ disabled = pythonOlder "3.8";
+
+ src = fetchFromGitHub {
+ owner = "karpetrosyan";
+ repo = "anysqlite";
+ rev = "refs/tags/v${version}";
+ hash = "sha256-6kNN6kjkMHVNneMq/8zQxqMIXUxH/+eWLX8XhoHqFRU=";
+ };
+
+ nativeBuildInputs = [
+ hatch-fancy-pypi-readme
+ hatchling
+ ];
+
+ propagatedBuildInputs = [
+ anyio
+ ];
+
+ nativeCheckInputs = [
+ pytestCheckHook
+ trio
+ ];
+
+ pythonImportsCheck = [
+ "anysqlite"
+ ];
+
+ meta = with lib; {
+ description = "Sqlite3 for asyncio and trio";
+ homepage = "https://github.com/karpetrosyan/anysqlite";
+ changelog = "https://github.com/karpetrosyan/anysqlite/blob/${version}/CHANGELOG.md";
+ license = licenses.bsd3;
+ maintainers = with maintainers; [ fab ];
+ };
+}