Files
nixpkgs/pkgs/development/python-modules/h2/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

54 lines
957 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
hpack,
hyperframe,
pytestCheckHook,
hypothesis,
}:
buildPythonPackage rec {
pname = "h2";
version = "4.3.0";
pyproject = true;
src = fetchFromGitHub {
owner = "python-hyper";
repo = "h2";
tag = "v${version}";
hash = "sha256-04we2xeh5LtLA4La9WPfXQVczDIz7NpL/6y9TmIELgM=";
};
build-system = [ setuptools ];
dependencies = [
hpack
hyperframe
];
nativeCheckInputs = [
pytestCheckHook
hypothesis
];
disabledTests = [
# timing sensitive
"test_changing_max_frame_size"
];
pythonImportsCheck = [
"h2.connection"
"h2.config"
];
meta = {
changelog = "https://github.com/python-hyper/h2/blob/${src.tag}/CHANGELOG.rst";
description = "HTTP/2 State-Machine based protocol implementation";
homepage = "https://github.com/python-hyper/h2";
license = lib.licenses.mit;
maintainers = [ ];
};
}