mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-27 10:44:36 +00:00
45 lines
927 B
Nix
45 lines
927 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
hypothesis,
|
|
ply,
|
|
pytestCheckHook,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "jsonpath-ng";
|
|
version = "1.8.0";
|
|
format = "setuptools";
|
|
# TODO: typo; change to pyproject = true;
|
|
pypropject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "h2non";
|
|
repo = "jsonpath-ng";
|
|
tag = "v${version}";
|
|
hash = "sha256-soCSMOHJpAM/tOaydvv8tGS/VewtSMBteDNipSPttI0=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [ ply ];
|
|
|
|
nativeCheckInputs = [
|
|
hypothesis
|
|
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";
|
|
};
|
|
}
|