mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 14:10:33 +03:00
52 lines
938 B
Nix
52 lines
938 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
jinja2,
|
|
json-flatten,
|
|
packageurl-python,
|
|
semver,
|
|
toml,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "custom-json-diff";
|
|
version = "2.1.6";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "appthreat";
|
|
repo = "custom-json-diff";
|
|
tag = "v${version}";
|
|
hash = "sha256-09kSj4fJHQHyzsCk0bSVlwAgkyzWOSjRKxU1rcMXacQ=";
|
|
};
|
|
|
|
build-system = [
|
|
setuptools
|
|
];
|
|
|
|
dependencies = [
|
|
jinja2
|
|
json-flatten
|
|
packageurl-python
|
|
semver
|
|
toml
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"custom_json_diff"
|
|
];
|
|
|
|
meta = {
|
|
description = "Utility to compare json documents containing dynamically-generated fields";
|
|
homepage = "https://github.com/appthreat/custom-json-diff";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ ethancedwards8 ];
|
|
};
|
|
}
|