Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / hologram / default.nix
blob30f50456bad9ebe650870b91fe2b4b95fa824577
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , fetchpatch
5 , jsonschema
6 , pytestCheckHook
7 , python-dateutil
8 , pythonRelaxDepsHook
9 , setuptools
10 , wheel
13 buildPythonPackage rec {
14   pname = "hologram";
15   version = "0.0.16";
16   format = "pyproject";
18   src = fetchFromGitHub {
19     owner = "dbt-labs";
20     repo = pname;
21     rev = "refs/tags/v${version}";
22     hash = "sha256-DboVCvByI8bTThamGBwSiQADGxIaEnTMmwmVI+4ARgc=";
23   };
25   patches = [
26     # https://github.com/dbt-labs/hologram/pull/58
27     (fetchpatch {
28       name = "python3.11-test-compatibility.patch";
29       url = "https://github.com/dbt-labs/hologram/commit/84bbe862ef6a2fcc8b8ce85b5c9a006cc7dc1f66.patch";
30       hash = "sha256-t096jJDoKUPED4QHSfVjUMLtUJjWcqjblCtGR8moEJc=";
31     })
32   ];
34   nativeBuildInputs = [
35     pythonRelaxDepsHook
36     setuptools
37     wheel
38   ];
40   propagatedBuildInputs = [
41     jsonschema
42     python-dateutil
43   ];
45   nativeCheckInputs = [
46     pytestCheckHook
47   ];
49   pythonRelaxDeps = [
50     "python-dateutil"
51   ];
53   pythonImportsCheck = [
54     "hologram"
55   ];
57   meta = with lib; {
58     description = "A library for automatically generating Draft 7 JSON Schemas from Python dataclasses";
59     homepage = "https://github.com/dbt-labs/hologram";
60     license = licenses.mit;
61     maintainers = with maintainers; [ mausch tjni ];
62   };