nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 54 lines 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 cargo, 5 fetchFromGitHub, 6 hypothesis, 7 pytestCheckHook, 8 rustc, 9 rustPlatform, 10}: 11 12buildPythonPackage rec { 13 pname = "jh2"; 14 version = "5.0.10"; 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "jawah"; 19 repo = "h2"; 20 tag = "v${version}"; 21 hash = "sha256-zytQ6UFNeIaF7cftp7C/RnXhuRbQxc1jhwVmFwUDF1Y="; 22 fetchSubmodules = true; 23 }; 24 25 cargoDeps = rustPlatform.fetchCargoVendor { 26 inherit pname version src; 27 hash = "sha256-W2BfuOhYL56gPd+j9YuJ7Ee3e+jT5m47h8qXihoMu1M="; 28 }; 29 30 build-system = [ 31 cargo 32 rustPlatform.cargoSetupHook 33 rustPlatform.maturinBuildHook 34 rustc 35 ]; 36 37 nativeCheckInputs = [ 38 hypothesis 39 pytestCheckHook 40 ]; 41 42 pythonImportsCheck = [ "jh2" ]; 43 44 meta = { 45 description = "HTTP/2 State-Machine based protocol implementation"; 46 homepage = "https://github.com/jawah/h2"; 47 changelog = "https://github.com/jawah/h2/blob/${src.rev}/CHANGELOG.rst"; 48 license = lib.licenses.mit; 49 maintainers = with lib.maintainers; [ 50 fab 51 techknowlogick 52 ]; 53 }; 54}