about summary refs log tree commit diff
path: root/pkgs/development/python-modules/voluptuous-openapi/default.nix
blob: a1f75cb60b01ad9acab9b723ba04c82ca6f947b6 (plain) (blame)
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
40
41
42
43
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,

  # build-system
  setuptools,

  # dependencies
  voluptuous,

  # tests
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "voluptuous-openapi";
  version = "0.0.4";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "Shulyaka";
    repo = "voluptuous-openapi";
    # TODO: https://github.com/Shulyaka/voluptuous-openapi/commit/155f2dd6d55998c41aaafe0aa8a980f78f9e478b#commitcomment-142845137
    rev = "155f2dd6d55998c41aaafe0aa8a980f78f9e478b";
    hash = "sha256-ciAaWTltPKT9NzfxWoX6gk1gSMszQjVVimfn/0D+mfg=";
  };

  build-system = [ setuptools ];

  dependencies = [ voluptuous ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "voluptuous_openapi" ];

  meta = with lib; {
    description = "Convert voluptuous schemas to OpenAPI Schema object";
    homepage = "https://github.com/Shulyaka/voluptuous-openapi";
    license = licenses.asl20;
    maintainers = with maintainers; [ hexa ];
  };
}