depot/third_party/nixpkgs/pkgs/development/python-modules/rfc8785/default.nix
Default email 83627f9931 Project import generated by Copybara.
GitOrigin-RevId: 2893f56de08021cffd9b6b6dfc70fd9ccd51eb60
2024-06-24 14:47:55 -04:00

40 lines
847 B
Nix

{ 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 ];
};
}