mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 22:26:35 +01:00
58 lines
1.1 KiB
Nix
58 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
aiofiles,
|
|
aiosqlite,
|
|
buildPythonPackage,
|
|
cbor2,
|
|
dbutils,
|
|
fetchFromGitHub,
|
|
msgpack,
|
|
pymysql,
|
|
pytest-asyncio,
|
|
pytestCheckHook,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "persist-queue";
|
|
version = "1.1.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "peter-wangxu";
|
|
repo = "persist-queue";
|
|
tag = "v${version}";
|
|
hash = "sha256-8LtXTpwAk71sjxvZudwk+4P4ohlWC0zagr5F8PTkTwk=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
optional-dependencies = {
|
|
async = [
|
|
aiofiles
|
|
aiosqlite
|
|
];
|
|
extra = [
|
|
cbor2
|
|
dbutils
|
|
msgpack
|
|
pymysql
|
|
];
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
]
|
|
++ lib.concatAttrValues optional-dependencies;
|
|
|
|
pythonImportsCheck = [ "persistqueue" ];
|
|
|
|
meta = {
|
|
changelog = "https://github.com/peter-wangxu/persist-queue/releases/tag/${src.tag}";
|
|
description = "Thread-safe disk based persistent queue in Python";
|
|
homepage = "https://github.com/peter-wangxu/persist-queue";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = with lib.maintainers; [ huantian ];
|
|
};
|
|
}
|