Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.9 kB · 80 lines
Nix
at llvm-cleanup
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081{ lib, buildPythonPackage, cython_0, email-validator, fetchFromGitHub, pytest-mock, pytest7CheckHook, python-dotenv, pythonAtLeast, pythonOlder, setuptools, typing-extensions, libxcrypt,}:
buildPythonPackage rec { pname = "pydantic"; version = "1.10.14"; pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub { owner = "pydantic"; repo = "pydantic"; rev = "refs/tags/v${version}"; hash = "sha256-tcaHSPZggVwyzCgDmwOgcGqUmUrJOmkdSNudJTFQ3bc="; };
nativeBuildInputs = [ setuptools cython_0 ];
buildInputs = lib.optionals (pythonOlder "3.9") [ libxcrypt ];
propagatedBuildInputs = [ typing-extensions ];
passthru.optional-dependencies = { dotenv = [ python-dotenv ]; email = [ email-validator ]; };
nativeCheckInputs = [ pytest-mock pytest7CheckHook ] ++ lib.flatten (lib.attrValues passthru.optional-dependencies);
pytestFlagsArray = [ # https://github.com/pydantic/pydantic/issues/4817 "-W" "ignore::pytest.PytestReturnNotNoneWarning" ];
preCheck = '' export HOME=$(mktemp -d) '';
disabledTests = lib.optionals (pythonAtLeast "3.12") [ # depends on distuils "test_cython_function_untouched" # AssertionError on exact types and wording "test_model_subclassing_abstract_base_classes_without_implementation_raises_exception" "test_partial_specification_name" "test_secretfield" ];
enableParallelBuilding = true;
pythonImportsCheck = [ "pydantic" ];
meta = with lib; { description = "Data validation and settings management using Python type hinting"; homepage = "https://github.com/pydantic/pydantic"; changelog = "https://github.com/pydantic/pydantic/blob/v${version}/HISTORY.md"; license = licenses.mit; maintainers = with maintainers; [ wd15 ]; };}