Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.1 kB · 57 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758{ lib, buildPythonPackage, cargo, fetchFromGitHub, hypothesis, pytestCheckHook, pythonOlder, rustc, rustPlatform,}:
buildPythonPackage rec { pname = "jh2"; version = "5.0.9"; pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub { owner = "jawah"; repo = "h2"; tag = "v${version}"; hash = "sha256-PA2hv+PIqcsvAIh8yIoQjol+Iaa3qsNRE8rBnR4UOzY="; fetchSubmodules = true; };
cargoDeps = rustPlatform.fetchCargoVendor { inherit pname version src; hash = "sha256-CW95omstpWm76TTSKsb04iChU0EW1Vl+OA3QXxfZAX0="; };
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 techknowlogick ]; };}