Files
nixpkgs/pkgs/development/python-modules/hologram/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

59 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
fetchpatch,
jsonschema,
pytestCheckHook,
python-dateutil,
setuptools,
wheel,
}:
buildPythonPackage rec {
pname = "hologram";
version = "0.0.16";
format = "pyproject";
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
];
};
}