blob: 28a680bc4ea3fcb263c0d4336fc2ee64d778546b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
gunicorn,
hatchling,
httpx,
pytestCheckHook,
trustme,
uvicorn,
}:
buildPythonPackage rec {
pname = "uvicorn-worker";
version = "0.4.0";
pyproject = true;
src = fetchFromGitHub {
owner = "Kludex";
repo = "uvicorn-worker";
tag = version;
hash = "sha256-qfk3lkHwuGbRWj4D65EontmEgKtk7ILq6gZCrxcrrJU=";
};
build-system = [ hatchling ];
dependencies = [
gunicorn
uvicorn
];
nativeCheckInputs = [
gunicorn
httpx
pytestCheckHook
trustme
];
preCheck = ''
export PATH="$PATH:$out/bin";
'';
pythonImportsCheck = [ "uvicorn_worker" ];
meta = {
description = "Uvicorn worker for Gunicorn";
homepage = "https://github.com/Kludex/uvicorn-worker";
changelog = "https://github.com/Kludex/uvicorn-worker/releases/tag/${src.tag}";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ fab ];
};
}
|