mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-08 10:04:24 +01:00
Diff: https://github.com/jg-rp/python-jsonpath/compare/v2.0.1...v2.0.2 Changelog: https://github.com/jg-rp/python-jsonpath/blob/v2.0.2/CHANGELOG.md
46 lines
991 B
Nix
46 lines
991 B
Nix
{
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
hatchling,
|
|
lib,
|
|
pytestCheckHook,
|
|
regex,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-jsonpath";
|
|
version = "2.0.2";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jg-rp";
|
|
repo = "python-jsonpath";
|
|
tag = "v${version}";
|
|
fetchSubmodules = true;
|
|
hash = "sha256-eVypnFeqFW2WJfCinWXJulVtxaFpNomK2tZNbmxsxrY=";
|
|
};
|
|
|
|
build-system = [ hatchling ];
|
|
|
|
optional-dependencies = {
|
|
strict = [
|
|
# FIXME package iregexp-check
|
|
regex
|
|
];
|
|
};
|
|
|
|
pythonImportsCheck = [ "jsonpath" ];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
]
|
|
++ optional-dependencies.strict;
|
|
|
|
meta = {
|
|
changelog = "https://github.com/jg-rp/python-jsonpath/blob/${src.tag}/CHANGELOG.md";
|
|
description = "Flexible JSONPath engine for Python with JSON Pointer and JSON Patch";
|
|
homepage = "https://github.com/jg-rp/python-jsonpath";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ lib.maintainers.dotlambda ];
|
|
};
|
|
}
|