python311Packages.pydantic-settings: init at 2.0.3

Packaged for fastapi tests.
This commit is contained in:
Martin Weinelt 2023-09-16 12:38:14 +02:00
parent f1a3b9747f
commit 29d27793fa
2 changed files with 53 additions and 0 deletions

View File

@ -0,0 +1,51 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, hatchling
, pydantic
, python-dotenv
, pytestCheckHook
, pytest-examples
, pytest-mock
}:
buildPythonPackage rec {
pname = "pydantic-settings";
version = "2.0.3";
format = "pyproject";
src = fetchFromGitHub {
owner = "pydantic";
repo = "pydantic-settings";
rev = "v${version}";
hash = "sha256-3V6daCibvVr8RKo2o+vHC++QgIYKAOyRg11ATrCzM5Y=";
};
nativeBuildInputs = [
hatchling
];
propagatedBuildInputs = [
pydantic
python-dotenv
];
pythonImportsCheck = [ "pydantic_settings" ];
nativeCheckInputs = [
pytestCheckHook
pytest-examples
pytest-mock
];
preCheck = ''
export HOME=$TMPDIR
'';
meta = with lib; {
description = "Settings management using pydantic";
homepage = "https://github.com/pydantic/pydantic-settings";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}

View File

@ -9075,6 +9075,8 @@ self: super: with self; {
pydantic-scim = callPackage ../development/python-modules/pydantic-scim { };
pydantic-settings = callPackage ../development/python-modules/pydantic-settings { };
pydash = callPackage ../development/python-modules/pydash { };
pydata-google-auth = callPackage ../development/python-modules/pydata-google-auth { };