mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00

Diff: https://github.com/h2non/jsonpath-ng/compare/refs/tags/v1.6.1...v1.7.0 Changelog: https://github.com/h2non/jsonpath-ng/blob/v1.7.0/History.md
41 lines
873 B
Nix
41 lines
873 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
ply,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "jsonpath-ng";
|
|
version = "1.7.0";
|
|
pypropject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "h2non";
|
|
repo = "jsonpath-ng";
|
|
tag = "v${version}";
|
|
hash = "sha256-sfIqEc5SsNQYxK+Ur00fFdVoC0ysOkHrx4Cq/3SpGHw=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [ ply ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "jsonpath_ng" ];
|
|
|
|
meta = with lib; {
|
|
description = "JSONPath implementation";
|
|
homepage = "https://github.com/h2non/jsonpath-ng";
|
|
changelog = "https://github.com/h2non/jsonpath-ng/blob/v${version}/History.md";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ fab ];
|
|
mainProgram = "jsonpath_ng";
|
|
};
|
|
}
|