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