blob: c8a8a6aaec8d45c5cce24226b5d06c5019955d22 (
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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
requests,
pytestCheckHook,
pytest-cov-stub,
}:
buildPythonPackage rec {
pname = "kiss-headers";
version = "2.5.0";
pyproject = true;
src = fetchFromGitHub {
owner = "Ousret";
repo = "kiss-headers";
tag = version;
hash = "sha256-h0e7kFbn6qxIeSG85qetBg6IeSi/2YAaZLGS0+JH2g8=";
};
nativeBuildInputs = [ hatchling ];
propagatedBuildInputs = [ requests ];
nativeCheckInputs = [
pytestCheckHook
pytest-cov-stub
];
preCheck = ''
rm -rf src # cause pycache conflict
'';
disabledTestPaths = [
# Tests require internet access
"tests/test_serializer.py"
"tests/test_with_http_request.py"
];
pythonImportsCheck = [ "kiss_headers" ];
meta = {
description = "Python package for HTTP/1.1 style headers";
homepage = "https://github.com/Ousret/kiss-headers";
license = lib.licenses.mit;
maintainers = [ ];
};
}
|