mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 03:12:51 +00:00
python311Packages.pydantic-settings: init at 2.0.3
Packaged for fastapi tests.
This commit is contained in:
parent
f1a3b9747f
commit
29d27793fa
@ -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; [ ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user