2024-02-02 10:51:31 +01:00
|
|
|
{
|
|
|
|
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=";
|
|
|
|
};
|
|
|
|
|
2024-02-02 10:51:31 +01:00
|
|
|
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";
|
|
|
|
};
|
|
|
|
}
|