mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 08:26:37 +01:00
Diff: https://github.com/chrisguidry/docket/compare/0.16.6...0.17.1 Changelog: https://github.com/chrisguidry/docket/releases/tag/0.17.1
77 lines
1.6 KiB
Nix
77 lines
1.6 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
|
|
# build-system
|
|
hatch-vcs,
|
|
hatchling,
|
|
|
|
# dependencies
|
|
cloudpickle,
|
|
fakeredis,
|
|
opentelemetry-api,
|
|
opentelemetry-exporter-prometheus,
|
|
opentelemetry-instrumentation,
|
|
prometheus-client,
|
|
py-key-value-aio,
|
|
python-json-logger,
|
|
redis,
|
|
rich,
|
|
typer,
|
|
typing-extensions,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "pydocket";
|
|
version = "0.17.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "chrisguidry";
|
|
repo = "docket";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-p3FqIHulsBxI7oyiahEruARXBuA2QAYdQeVh83OFHbg=";
|
|
};
|
|
|
|
build-system = [
|
|
hatch-vcs
|
|
hatchling
|
|
];
|
|
|
|
pythonRelaxDeps = [
|
|
"fakeredis"
|
|
"opentelemetry-exporter-prometheus"
|
|
"opentelemetry-instrumentation"
|
|
];
|
|
dependencies = [
|
|
cloudpickle
|
|
fakeredis
|
|
opentelemetry-api
|
|
opentelemetry-exporter-prometheus
|
|
opentelemetry-instrumentation
|
|
prometheus-client
|
|
py-key-value-aio
|
|
python-json-logger
|
|
redis
|
|
rich
|
|
typer
|
|
typing-extensions
|
|
]
|
|
++ fakeredis.optional-dependencies.lua
|
|
++ py-key-value-aio.optional-dependencies.memory
|
|
++ py-key-value-aio.optional-dependencies.redis;
|
|
|
|
pythonImportsCheck = [ "docket" ];
|
|
|
|
# All tests require internet access
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
description = "Distributed background task system for Python";
|
|
homepage = "https://github.com/chrisguidry/docket";
|
|
changelog = "https://github.com/chrisguidry/docket/releases/tag/${finalAttrs.src.tag}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ GaetanLepage ];
|
|
};
|
|
})
|