python311Packages.anysqlite: init at 0.0.5
Sqlite3 for asyncio and trio https://github.com/karpetrosyan/anysqlite
This commit is contained in:
parent
95386d1c13
commit
6b1fd2a49b
2 changed files with 53 additions and 0 deletions
51
pkgs/development/python-modules/anysqlite/default.nix
Normal file
51
pkgs/development/python-modules/anysqlite/default.nix
Normal file
|
@ -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 ];
|
||||
};
|
||||
}
|
|
@ -607,6 +607,8 @@ self: super: with self; {
|
|||
|
||||
anyqt = callPackage ../development/python-modules/anyqt { };
|
||||
|
||||
anysqlite = callPackage ../development/python-modules/anysqlite { };
|
||||
|
||||
anytree = callPackage ../development/python-modules/anytree {
|
||||
inherit (pkgs) graphviz;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue