about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/hologram/default.nix
blob: 0964bbf89ca4c907e46a4b2a6a1215fcacb30dbe (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
44
45
{ lib
, buildPythonPackage
, fetchFromGitHub
, jsonschema
, pytestCheckHook
, python-dateutil
, setuptools
}:

buildPythonPackage rec {
  pname = "hologram";
  version = "0.0.16";
  format = "pyproject";

  src = fetchFromGitHub {
    owner = "dbt-labs";
    repo = pname;
    rev = "refs/tags/v${version}";
    hash = "sha256-DboVCvByI8bTThamGBwSiQADGxIaEnTMmwmVI+4ARgc=";
  };

  nativeBuildInputs = [
    setuptools
  ];

  propagatedBuildInputs = [
    jsonschema
    python-dateutil
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [
    "hologram"
  ];

  meta = with lib; {
    description = "A library for automatically generating Draft 7 JSON Schemas from Python dataclasses";
    homepage = "https://github.com/dbt-labs/hologram";
    license = licenses.mit;
    maintainers = with maintainers; [ mausch tjni ];
  };
}