infrastructure/machines/compute01/satosa/package/pydantic-settings.nix

36 lines
744 B
Nix
Raw Normal View History

{
lib,
python3,
fetchPypi,
pydantic,
2023-09-26 20:56:55 +02:00
}:
python3.pkgs.buildPythonPackage rec {
pname = "pydantic-settings";
version = "2.0.3";
pyproject = true;
src = fetchPypi {
pname = "pydantic_settings";
inherit version;
hash = "sha256-li3DZySVqtaulqQ5D6x+WTWR4URiXlES01n49n+3WUU=";
};
nativeBuildInputs = [ python3.pkgs.hatchling ];
2023-09-26 20:56:55 +02:00
propagatedBuildInputs = with python3.pkgs; [
pydantic
python-dotenv
];
pythonImportsCheck = [ "pydantic_settings" ];
meta = with lib; {
description = "Settings management using Pydantic";
homepage = "https://pypi.org/project/pydantic-settings/";
license = licenses.mit;
maintainers = with maintainers; [ ];
mainProgram = "pydantic-settings";
};
}