Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / pydantic-extra-types / default.nix
blob7595ac0b1d573237b1690ea0ea30c2c3027ef223
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , hatchling
5 , pydantic
6 , pendulum
7 , phonenumbers
8 , pycountry
9 , python-ulid
10 , pytestCheckHook
13 buildPythonPackage rec {
14   pname = "pydantic-extra-types";
15   version = "2.6.0";
16   pyproject = true;
18   src = fetchFromGitHub {
19     owner = "pydantic";
20     repo = "pydantic-extra-types";
21     rev = "refs/tags/v${version}";
22     hash = "sha256-XLVhoZ3+TfVYEuk/5fORaGpCBaB5NcuskWhHgt+llS0=";
23   };
25   nativeBuildInputs = [
26     hatchling
27   ];
29   propagatedBuildInputs = [
30     pydantic
31   ];
33   passthru.optional-dependencies = {
34     all = [
35       pendulum
36       phonenumbers
37       pycountry
38       python-ulid
39     ];
40   };
42   pythonImportsCheck = [ "pydantic_extra_types" ];
44   nativeCheckInputs = [
45     pytestCheckHook
46   ] ++ passthru.optional-dependencies.all;
48   meta = with lib; {
49     changelog = "https://github.com/pydantic/pydantic-extra-types/blob/${src.rev}/HISTORY.md";
50     description = "Extra Pydantic types";
51     homepage = "https://github.com/pydantic/pydantic-extra-types";
52     license = licenses.mit;
53     maintainers = with maintainers; [ ];
54   };