infrastructure/machines/nixos/compute01/satosa/package/pydantic.nix
Tom Hubrecht 88d9b8c3e3
chore: Add license and copyright information
Signed-off-by: Tom Hubrecht <tom.hubrecht@dgnum.eu>
Acked-by: Ryan Lahfa <ryan.lahfa@dgnum.eu>
Acked-by: Maurice Debray <maurice.debray@dgnum.eu>
Acked-by: Lubin Bailly <lubin.bailly@dgnum.eu>
Acked-by: Jean-Marc Gailis <jean-marc.gailis@dgnum.eu> as the legal authority, at the time of writing, in DGNum.
Acked-by: Elias Coppens <elias.coppens@dgnum.eu> as a member, at the time of writing, of the DGNum executive counsel.
2024-12-13 12:41:38 +01:00

46 lines
968 B
Nix

# SPDX-FileCopyrightText: 2024 Tom Hubrecht <tom.hubrecht@dgnum.eu>
#
# SPDX-License-Identifier: EUPL-1.2
{
lib,
python3,
fetchPypi,
pydantic-core,
}:
python3.pkgs.buildPythonPackage rec {
pname = "pydantic";
version = "2.4.1";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-sXJQWIYCjkNWho1hfS0ad2168WJdExNFD9Ub3RnZ1h8=";
};
nativeBuildInputs = [
python3.pkgs.hatch-fancy-pypi-readme
python3.pkgs.hatchling
];
propagatedBuildInputs = with python3.pkgs; [
annotated-types
pydantic-core
typing-extensions
];
passthru.optional-dependencies = with python3.pkgs; {
email = [ email-validator ];
};
pythonImportsCheck = [ "pydantic" ];
meta = with lib; {
description = "Data validation using Python type hints";
homepage = "https://pypi.org/project/pydantic";
license = licenses.mit;
maintainers = with maintainers; [ ];
mainProgram = "pydantic";
};
}