summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/jsonpath/default.nix
blob: 0c48c16822f1d2c5a9727c2c2336e0a1bfee280f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{
  lib,
  buildPythonPackage,
  fetchPypi,
  pytestCheckHook,
  setuptools,
}:

buildPythonPackage rec {
  pname = "jsonpath";
  version = "0.82.2";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-2H7yvLze1o7pa8NMGAm2lFfs7JsMTdRxZYoSvTkQAtE=";
  };

  build-system = [ setuptools ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "jsonpath" ];

  enabledTestPaths = [ "test/test*.py" ];

  meta = {
    description = "XPath for JSON";
    homepage = "https://www.ultimate.com/phil/python/#jsonpath";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ mic92 ];
  };
}