mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 08:33:54 +00:00
6b1fd2a49b
Sqlite3 for asyncio and trio https://github.com/karpetrosyan/anysqlite
52 lines
966 B
Nix
52 lines
966 B
Nix
{ 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 ];
|
|
};
|
|
}
|