at master 845 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 flit-core, 6 pytestCheckHook, 7 pythonOlder, 8}: 9 10buildPythonPackage rec { 11 pname = "rfc8785"; 12 version = "0.1.4"; 13 pyproject = true; 14 15 disabled = pythonOlder "3.8"; 16 17 src = fetchFromGitHub { 18 owner = "trailofbits"; 19 repo = "rfc8785.py"; 20 tag = "v${version}"; 21 hash = "sha256-0Gze3voFXEhf13DuTuBWDbYPmqHXs0FSRn2NprFWoB8="; 22 }; 23 24 build-system = [ 25 flit-core 26 ]; 27 28 nativeCheckInputs = [ 29 pytestCheckHook 30 ]; 31 32 pythonImportsCheck = [ "rfc8785" ]; 33 34 meta = with lib; { 35 description = "Module for RFC8785 (JSON Canonicalization Scheme)"; 36 homepage = "https://github.com/trailofbits/rfc8785.py"; 37 changelog = "https://github.com/trailofbits/rfc8785.py/releases/tag/v${version}"; 38 license = licenses.asl20; 39 maintainers = with maintainers; [ fab ]; 40 }; 41}