Files
nixpkgs/pkgs/development/python-modules/jsonpath-ng/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

44 lines
940 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
ply,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "jsonpath-ng";
version = "1.7.0";
format = "setuptools";
# TODO: typo; change to pyproject = true;
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 = {
description = "JSONPath implementation";
homepage = "https://github.com/h2non/jsonpath-ng";
changelog = "https://github.com/h2non/jsonpath-ng/blob/v${version}/History.md";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
mainProgram = "jsonpath_ng";
};
}