11 buildPythonPackage rec {
12 pname = "annotated-types";
16 src = fetchFromGitHub {
17 owner = "annotated-types";
18 repo = "annotated-types";
19 rev = "refs/tags/v${version}";
20 hash = "sha256-I1SPUKq2WIwEX5JmS3HrJvrpNrKDu30RWkBRDFE+k9A=";
23 nativeBuildInputs = [ hatchling ];
25 propagatedBuildInputs = lib.optionals (pythonOlder "3.9") [ typing-extensions ];
27 pythonImportsCheck = [ "annotated_types" ];
29 nativeCheckInputs = [ pytestCheckHook ];
32 description = "Reusable constraint types to use with typing.Annotated";
33 homepage = "https://github.com/annotated-types/annotated-types";
34 changelog = "https://github.com/annotated-types/annotated-types/releases/tag/${lib.removePrefix "refs/tags/" src.rev}";
35 license = licenses.mit;
36 maintainers = with maintainers; [ blaggacao ];