blob: 05e21d84585f992dee0e4fa5845b68e22da4e5f4 (
plain) (
blame)
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
|
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, setuptools
, setuptools-scm
, sniffio
}:
buildPythonPackage rec {
pname = "asgi-lifespan";
version = "2.1.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "florimondmanca";
repo = "asgi-lifespan";
rev = "refs/tags/${version}";
hash = "sha256-Jgmd/4c1lxHM/qi3MJNN1aSSUJrI7CRNwwHrFwwcCkc=";
};
postPatch = ''
sed -i "/--cov/d" setup.cfg
'';
build-system = [
setuptools
setuptools-scm
];
dependencies = [
sniffio
];
# Circular dependencies, starlette
doCheck = false;
pythonImportsCheck = [
"asgi_lifespan"
];
meta = with lib; {
description = "Programmatic startup/shutdown of ASGI apps";
homepage = "https://github.com/florimondmanca/asgi-lifespan";
changelog = "https://github.com/florimondmanca/asgi-lifespan/blob/${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}
|