Files
nixpkgs/pkgs/development/python-modules/kiss-headers/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

51 lines
960 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 = "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 = [ ];
};
}