python312Packages.jh2: init at 5.0.4 (#359996)

This commit is contained in:
Fabian Affolter 2024-11-30 10:05:21 +01:00 committed by GitHub
commit c60179cdca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 57 additions and 0 deletions

View File

@ -0,0 +1,55 @@
{
lib,
buildPythonPackage,
cargo,
fetchFromGitHub,
hypothesis,
pytestCheckHook,
pythonOlder,
rustc,
rustPlatform,
}:
buildPythonPackage rec {
pname = "jh2";
version = "5.0.4";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "jawah";
repo = "h2";
rev = "refs/tags/v${version}";
hash = "sha256-la1tZ+t6HeGqaua1f858mT1IRyqS0hnoOiKr656vthQ=";
fetchSubmodules = true;
};
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
name = "${pname}-${version}";
hash = "sha256-m1MkKhwTMDGsC0jt1skyFb23Ln5spa+vUEOyA5pHxP4=";
};
build-system = [
cargo
rustPlatform.cargoSetupHook
rustPlatform.maturinBuildHook
rustc
];
nativeCheckInputs = [
hypothesis
pytestCheckHook
];
pythonImportsCheck = [ "jh2" ];
meta = {
description = "HTTP/2 State-Machine based protocol implementation";
homepage = "https://github.com/jawah/h2";
changelog = "https://github.com/jawah/h2/blob/${src.rev}/CHANGELOG.rst";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}

View File

@ -6564,6 +6564,8 @@ self: super: with self; {
jenkins-job-builder = callPackage ../development/python-modules/jenkins-job-builder { };
jh2 = callPackage ../development/python-modules/jh2 { };
jianpu-ly = callPackage ../development/python-modules/jianpu-ly { };
jieba = callPackage ../development/python-modules/jieba { };