1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 hatchling,
6 requests,
7 pytestCheckHook,
8 pytest-cov-stub,
9}:
10
11buildPythonPackage rec {
12 pname = "kiss-headers";
13 version = "2.5.0";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "Ousret";
18 repo = "kiss-headers";
19 tag = version;
20 hash = "sha256-h0e7kFbn6qxIeSG85qetBg6IeSi/2YAaZLGS0+JH2g8=";
21 };
22
23 nativeBuildInputs = [ hatchling ];
24
25 propagatedBuildInputs = [ requests ];
26
27 nativeCheckInputs = [
28 pytestCheckHook
29 pytest-cov-stub
30 ];
31
32 disabledTestPaths = [
33 # Tests require internet access
34 "kiss_headers/__init__.py"
35 "tests/test_serializer.py"
36 "tests/test_with_http_request.py"
37 ];
38
39 pythonImportsCheck = [ "kiss_headers" ];
40
41 meta = with lib; {
42 description = "Python package for HTTP/1.1 style headers";
43 homepage = "https://github.com/Ousret/kiss-headers";
44 license = licenses.mit;
45 maintainers = [ ];
46 };
47}