mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-11-30 01:40:18 +00:00
generated using https://git.kybe.xyz/2kybe3/nixpkgs-github-redirect continuation of: #581558
51 lines
958 B
Nix
51 lines
958 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
hatchling,
|
|
requests,
|
|
pytestCheckHook,
|
|
pytest-cov-stub,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "kiss-headers";
|
|
version = "2.5.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jawah";
|
|
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/jawah/kiss-headers";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ ];
|
|
};
|
|
}
|