1{ lib
2, buildPythonPackage
3, fetchPypi
4, flit-core
5, python
6, pythonOlder
7}:
8
9buildPythonPackage rec {
10 pname = "typing-extensions";
11 version = "4.3.0";
12 format = "pyproject";
13
14 disabled = pythonOlder "3.6";
15
16 src = fetchPypi {
17 pname = "typing_extensions";
18 inherit version;
19 hash = "sha256-5tJnejL0f8frJ5XbHdFcHzTv9ha8ryz7Xpl/hU+hxKY=";
20 };
21
22 nativeBuildInputs = [
23 flit-core
24 ];
25
26 # Tests are not part of PyPI releases. GitHub source can't be used
27 # as it ends with an infinite recursion
28 doCheck = false;
29
30 pythonImportsCheck = [
31 "typing_extensions"
32 ];
33
34 meta = with lib; {
35 description = "Backported and Experimental Type Hints for Python 3.5+";
36 homepage = "https://github.com/python/typing";
37 license = licenses.psfl;
38 maintainers = with maintainers; [ pmiddend ];
39 };
40}