0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-15 06:31:39 +03:00
nixpkgs/pkgs/development/python-modules/custom-json-diff/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

53 lines
938 B
Nix
Raw Normal View History

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