python310Packages.graphtage: add changelog to meta

This commit is contained in:
Fabian Affolter 2023-01-09 18:44:36 +01:00 committed by GitHub
parent eec6aa8119
commit d1d55b3402
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,9 +1,8 @@
{ buildPythonPackage
{ lib
, buildPythonPackage
, fetchFromGitHub
, lib
, pytestCheckHook
, pythonOlder
# Python dependencies
, colorama
, intervaltree
, json5
@ -16,15 +15,21 @@
buildPythonPackage rec {
pname = "graphtage";
version = "0.2.7";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "trailofbits";
repo = pname;
rev = "refs/tags/v${version}";
sha256 = "sha256-3PJSjK8citdsfTyTLtDOlLeXWhkOW/4ajLC+j8F0BZw=";
hash = "sha256-3PJSjK8citdsfTyTLtDOlLeXWhkOW/4ajLC+j8F0BZw=";
};
postPatch = ''
substituteInPlace setup.py \
--replace "json5==0.9.5" "json5>=0.9.5"
'';
propagatedBuildInputs = [
colorama
intervaltree
@ -35,18 +40,18 @@ buildPythonPackage rec {
typing-extensions
];
checkInputs = [ pytestCheckHook ];
checkInputs = [
pytestCheckHook
];
postPatch = ''
substituteInPlace setup.py \
--replace "json5==0.9.5" "json5>=0.9.5"
'';
pythonImportsCheck = [ "graphtage" ];
pythonImportsCheck = [
"graphtage"
];
meta = with lib; {
homepage = "https://github.com/trailofbits/graphtage";
description = "A utility to diff tree-like files such as JSON and XML";
homepage = "https://github.com/trailofbits/graphtage";
changelog = "https://github.com/trailofbits/graphtage/releases/tag/v${version}";
license = licenses.lgpl3Plus;
maintainers = with maintainers; [ veehaitch ];
};