diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2024-06-24 13:35:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-24 13:35:03 +0200 |
commit | b4eaf50471fa7fc828334a77141e3cd3f7e4601c (patch) | |
tree | 1571e4889543258eaf5a908d3fd35828cda858c0 /pkgs/development | |
parent | f2a5acc859f671f0b9690333d3f8105098674a24 (diff) | |
parent | 4a78856aad91bad2fbffa61d099c6ce5a93db75c (diff) |
Merge pull request #322147 from fabaff/rfc8785
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/python-modules/rfc8785/default.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/rfc8785/default.nix b/pkgs/development/python-modules/rfc8785/default.nix new file mode 100644 index 0000000000000..c3505ebc460e4 --- /dev/null +++ b/pkgs/development/python-modules/rfc8785/default.nix @@ -0,0 +1,40 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, flit-core +, pytestCheckHook +, pythonOlder +}: + +buildPythonPackage rec { + pname = "rfc8785"; + version = "0.1.3"; + pyproject = true; + + disabled = pythonOlder "3.8"; + + src = fetchFromGitHub { + owner = "trailofbits"; + repo = "rfc8785.py"; + rev = "refs/tags/v${version}"; + hash = "sha256-hMH//DpxgNoNLZJ8XL8SikcTfj0w0FvlBMfnPCkqzZ4="; + }; + + build-system = [ + flit-core + ]; + + nativeCheckInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ "rfc8785" ]; + + meta = with lib; { + description = "Module for RFC8785 (JSON Canonicalization Scheme)"; + homepage = "https://github.com/trailofbits/rfc8785.py"; + changelog = "https://github.com/trailofbits/rfc8785.py/releases/tag/v${version}"; + license = licenses.asl20; + maintainers = with maintainers; [ fab ]; + }; +} |