mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-03 19:43:30 +00:00
70ccb0dec2
python311Packages.pydantic-settings: mark broken It was packaged for pydantic 2.0, which was then reverted due to too many regressions. Keep the package, but mark it broken until our pydantic version catches up.
53 lines
983 B
Nix
53 lines
983 B
Nix
{ 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;
|
|
broken = lib.versionOlder pydantic.version "2.0.0";
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|