summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/json-api-doc/default.nix
blob: a7a37ae7c75b4342935ab8d8d4d561b994121d2d (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
34
35
36
37
38
39
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  pytestCheckHook,
}:

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

  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 ];
  };
}