17 buildPythonPackage rec {
18 pname = "pydantic-extra-types";
22 src = fetchFromGitHub {
24 repo = "pydantic-extra-types";
25 rev = "refs/tags/v${version}";
26 hash = "sha256-PgytBSue3disJifnpTl1DGNMZkp93cJEIDm8wgKMHFo=";
29 build-system = [ hatchling ];
36 optional-dependencies = {
46 pythonImportsCheck = [ "pydantic_extra_types" ];
48 nativeCheckInputs = [ pytestCheckHook ] ++ optional-dependencies.all;
51 # outdated jsonschema fixture
55 # PermissionError accessing '/etc/localtime'
56 disabledTestPaths = lib.optionals stdenv.hostPlatform.isDarwin [ "tests/test_pendulum_dt.py" ];
59 changelog = "https://github.com/pydantic/pydantic-extra-types/blob/${src.rev}/HISTORY.md";
60 description = "Extra Pydantic types";
61 homepage = "https://github.com/pydantic/pydantic-extra-types";
62 license = licenses.mit;