python310Packages.kiss-headers: init at 2.3.0

This commit is contained in:
P. R. d. O 2022-03-07 11:20:26 -06:00
parent 5d78fa265b
commit 4797442a72
No known key found for this signature in database
GPG Key ID: 7B0FF33FF90110C7
2 changed files with 41 additions and 0 deletions

View File

@ -0,0 +1,39 @@
{ lib, buildPythonPackage, fetchFromGitHub, requests, pytestCheckHook }:
buildPythonPackage rec {
pname = "kiss-headers";
version = "2.3.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "Ousret";
repo = pname;
rev = version;
sha256 = "sha256-/eTRyxFyAKQMzE/JjdoEN3w0lRiaIJcsJHTWV8M0CYQ=";
};
propagatedBuildInputs = [ requests ];
checkInputs = [ pytestCheckHook ];
postPatch = ''
substituteInPlace setup.cfg \
--replace "--cov=kiss_headers --doctest-modules --cov-report=term-missing -rxXs" "--doctest-modules -rxXs"
'';
disabledTestPaths = [
# Tests require internet access
"kiss_headers/__init__.py"
"tests/test_serializer.py"
"tests/test_with_http_request.py"
];
pythonImportsCheck = [ "kiss_headers" ];
meta = with lib; {
description = "Python package for HTTP/1.1 style headers";
homepage = "https://github.com/Ousret/kiss-headers";
license = licenses.mit;
maintainers = with maintainers; [ wolfangaukang ];
};
}

View File

@ -4476,6 +4476,8 @@ in {
kinparse = callPackage ../development/python-modules/kinparse { };
kiss-headers = callPackage ../development/python-modules/kiss-headers { };
kitchen = callPackage ../development/python-modules/kitchen { };
kivy = callPackage ../development/python-modules/kivy {