python312Packages.fnllm: 0.0.11 -> 0.0.12 (#364582)
[NixPkgs.git] / pkgs / development / python-modules / hologram / default.nix
blobbedeb1f17dfbbddacfdc1d0d920e1eb3febdd18f
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   fetchpatch,
6   jsonschema,
7   pytestCheckHook,
8   python-dateutil,
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     setuptools
36     wheel
37   ];
39   propagatedBuildInputs = [
40     jsonschema
41     python-dateutil
42   ];
44   nativeCheckInputs = [ pytestCheckHook ];
46   pythonRelaxDeps = [ "python-dateutil" ];
48   pythonImportsCheck = [ "hologram" ];
50   meta = with lib; {
51     description = "Library for automatically generating Draft 7 JSON Schemas from Python dataclasses";
52     homepage = "https://github.com/dbt-labs/hologram";
53     license = licenses.mit;
54     maintainers = with maintainers; [
55       mausch
56       tjni
57     ];
58   };