Commit 84866ae3 authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python312Packages.json-api-doc: init at 0.15.0

JSON API parser returning a simple Python dictionary

https://github.com/julien-duponchelle/json-api-doc
parent c53b7758
Loading
Loading
Loading
Loading
+42 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  pytestCheckHook,
  pythonOlder,
}:

buildPythonPackage rec {
  pname = "json-api-doc";
  version = "0.15.0";
  pyproject = true;

  disabled = pythonOlder "3.10";

  src = fetchFromGitHub {
    owner = "julien-duponchelle";
    repo = "json-api-doc";
    tag = "v${version}";
    hash = "sha256-r6XduJ2GIr2hGen6hoNIdE3yqPzHJ9xAFOSbMgErsNA=";
  };

  postPatch = ''
    substituteInPlace setup.py \
      --replace-fail "'pytest-runner'," ""
  '';

  build-system = [ setuptools ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "json_api_doc" ];

  meta = {
    description = "JSON API parser returning a simple Python dictionary";
    homepage = "https://github.com/julien-duponchelle/json-api-doc";
    changelog = "https://github.com/julien-duponchelle/json-api-doc/releases/tag/v${version}";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ fab ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -6691,6 +6691,8 @@ self: super: with self; {
  jsonlines = callPackage ../development/python-modules/jsonlines { };
  json-api-doc = callPackage ../development/python-modules/json-api-doc { };
  json-logging = callPackage ../development/python-modules/json-logging { };
  jsonmerge = callPackage ../development/python-modules/jsonmerge { };