10 buildPythonPackage rec {
11 pname = "kiss-headers";
15 src = fetchFromGitHub {
18 rev = "refs/tags/${version}";
19 hash = "sha256-WeAzlC1yT+0nPSuB278z8T0XvPjbre051f/Rva5ujAk=";
22 nativeBuildInputs = [ hatchling ];
24 propagatedBuildInputs = [ requests ];
26 nativeCheckInputs = [ pytestCheckHook ];
29 substituteInPlace pyproject.toml \
30 --replace-fail "--cov=kiss_headers --doctest-modules --cov-report=term-missing -rxXs" "--doctest-modules -rxXs"
34 # Tests require internet access
35 "kiss_headers/__init__.py"
36 "tests/test_serializer.py"
37 "tests/test_with_http_request.py"
40 pythonImportsCheck = [ "kiss_headers" ];
43 description = "Python package for HTTP/1.1 style headers";
44 homepage = "https://github.com/Ousret/kiss-headers";
45 license = licenses.mit;