Commit 4f65914b authored by Robert Schütz's avatar Robert Schütz
Browse files

python3Packages.jsonpath: modernize

parent 825bfc23
Loading
Loading
Loading
Loading
+8 −8
Original line number Diff line number Diff line
@@ -3,31 +3,31 @@
  buildPythonPackage,
  fetchPypi,
  pytestCheckHook,
  pythonOlder,
  setuptools,
}:

buildPythonPackage rec {
  pname = "jsonpath";
  version = "0.82.2";
  format = "setuptools";

  disabled = pythonOlder "3.7";
  pyproject = true;

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

  build-system = [ setuptools ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "jsonpath" ];

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

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