Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / annotated-types / default.nix
blob85e2379507c6c64113e1e6ed1a55e108a5429edf
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , hatchling
5 , typing-extensions
6 , pytestCheckHook
7 , pythonOlder
8 }:
10 buildPythonPackage rec {
11   pname = "annotated-types";
12   version = "0.6.0";
13   format = "pyproject";
15   src = fetchFromGitHub {
16     owner = "annotated-types";
17     repo = "annotated-types";
18     rev = "refs/tags/v${version}";
19     hash = "sha256-SZ9/rXYcns4DFM6vk6SRKvuv3MY3T7xO9aW7WAQqtVE=";
20   };
22   nativeBuildInputs = [
23     hatchling
24   ];
26   propagatedBuildInputs = lib.optionals (pythonOlder "3.9") [
27     typing-extensions
28   ];
30   pythonImportsCheck = [ "annotated_types" ];
32   nativeCheckInputs = [
33     pytestCheckHook
34   ];
36   meta = with lib; {
37     description = "Reusable constraint types to use with typing.Annotated";
38     homepage = "https://github.com/annotated-types/annotated-types";
39     changelog = "https://github.com/annotated-types/annotated-types/releases/tag/${src.rev}";
40     license = licenses.mit;
41     maintainers = with maintainers; [ blaggacao ];
42   };