1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 flit-core,
6
7 # reverse dependencies
8 mashumaro,
9 pydantic,
10}:
11
12buildPythonPackage rec {
13 pname = "typing-extensions";
14 version = "4.14.1";
15 pyproject = true;
16
17 src = fetchFromGitHub {
18 owner = "python";
19 repo = "typing_extensions";
20 tag = version;
21 hash = "sha256-KzfxVUgPN1cLg73A3TC2zQjYfeLc8x9TtbLmOfmlOkY=";
22 };
23
24 nativeBuildInputs = [ flit-core ];
25
26 pythonImportsCheck = [ "typing_extensions" ];
27
28 passthru.tests = {
29 inherit mashumaro pydantic;
30 };
31
32 meta = with lib; {
33 description = "Backported and Experimental Type Hints for Python";
34 changelog = "https://github.com/python/typing_extensions/blob/${version}/CHANGELOG.md";
35 homepage = "https://github.com/python/typing";
36 license = licenses.psfl;
37 maintainers = with maintainers; [ pmiddend ];
38 };
39}