1{ 2 lib, 3 anyio, 4 buildPythonPackage, 5 fetchFromGitHub, 6 hatch-fancy-pypi-readme, 7 hatchling, 8 pytestCheckHook, 9 pythonOlder, 10 trio, 11}: 12 13buildPythonPackage rec { 14 pname = "anysqlite"; 15 version = "0.0.5"; 16 pyproject = true; 17 18 disabled = pythonOlder "3.8"; 19 20 src = fetchFromGitHub { 21 owner = "karpetrosyan"; 22 repo = "anysqlite"; 23 tag = "v${version}"; 24 hash = "sha256-6kNN6kjkMHVNneMq/8zQxqMIXUxH/+eWLX8XhoHqFRU="; 25 }; 26 27 nativeBuildInputs = [ 28 hatch-fancy-pypi-readme 29 hatchling 30 ]; 31 32 propagatedBuildInputs = [ anyio ]; 33 34 nativeCheckInputs = [ 35 pytestCheckHook 36 trio 37 ]; 38 39 pythonImportsCheck = [ "anysqlite" ]; 40 41 meta = with lib; { 42 description = "Sqlite3 for asyncio and trio"; 43 homepage = "https://github.com/karpetrosyan/anysqlite"; 44 changelog = "https://github.com/karpetrosyan/anysqlite/blob/${version}/CHANGELOG.md"; 45 license = licenses.bsd3; 46 maintainers = with maintainers; [ fab ]; 47 }; 48}