evcc: 0.131.8 -> 0.131.10 (#364658)
[NixPkgs.git] / pkgs / development / python-modules / pydantic-extra-types / default.nix
blobd89e11fd1d5af8e915464cb35d50fce43de04d4b
2   lib,
3   stdenv,
4   buildPythonPackage,
5   fetchFromGitHub,
6   hatchling,
7   pydantic,
8   semver,
9   pendulum,
10   phonenumbers,
11   pycountry,
12   python-ulid,
13   pytz,
14   pytestCheckHook,
17 buildPythonPackage rec {
18   pname = "pydantic-extra-types";
19   version = "2.9.0";
20   pyproject = true;
22   src = fetchFromGitHub {
23     owner = "pydantic";
24     repo = "pydantic-extra-types";
25     rev = "refs/tags/v${version}";
26     hash = "sha256-PgytBSue3disJifnpTl1DGNMZkp93cJEIDm8wgKMHFo=";
27   };
29   build-system = [ hatchling ];
31   dependencies = [
32     pydantic
33     semver
34   ];
36   optional-dependencies = {
37     all = [
38       pendulum
39       phonenumbers
40       pycountry
41       python-ulid
42       pytz
43     ];
44   };
46   pythonImportsCheck = [ "pydantic_extra_types" ];
48   nativeCheckInputs = [ pytestCheckHook ] ++ optional-dependencies.all;
50   disabledTests = [
51     # outdated jsonschema fixture
52     "test_json_schema"
53   ];
55   # PermissionError accessing '/etc/localtime'
56   disabledTestPaths = lib.optionals stdenv.hostPlatform.isDarwin [ "tests/test_pendulum_dt.py" ];
58   meta = with lib; {
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;
63     maintainers = [ ];
64   };