blob: 9a013f1490e524f53f36ca14dc7f179b3f9b5af2 (
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
fetchpatch,
jsonschema,
pytestCheckHook,
python-dateutil,
setuptools,
wheel,
}:
buildPythonPackage rec {
pname = "hologram";
version = "0.0.16";
pyproject = true;
src = fetchFromGitHub {
owner = "dbt-labs";
repo = "hologram";
tag = "v${version}";
hash = "sha256-DboVCvByI8bTThamGBwSiQADGxIaEnTMmwmVI+4ARgc=";
};
patches = [
# https://github.com/dbt-labs/hologram/pull/58
(fetchpatch {
name = "python3.11-test-compatibility.patch";
url = "https://github.com/dbt-labs/hologram/commit/84bbe862ef6a2fcc8b8ce85b5c9a006cc7dc1f66.patch";
hash = "sha256-t096jJDoKUPED4QHSfVjUMLtUJjWcqjblCtGR8moEJc=";
})
];
nativeBuildInputs = [
setuptools
wheel
];
propagatedBuildInputs = [
jsonschema
python-dateutil
];
nativeCheckInputs = [ pytestCheckHook ];
pythonRelaxDeps = [ "python-dateutil" ];
pythonImportsCheck = [ "hologram" ];
meta = {
description = "Library for automatically generating Draft 7 JSON Schemas from Python dataclasses";
homepage = "https://github.com/dbt-labs/hologram";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
mausch
];
};
}
|