1{ lib
2, buildPythonPackage
3, fetchPypi
4, flit-core
5, python
6, pythonOlder
7}:
8
9buildPythonPackage rec {
10 pname = "typing-extensions";
11 version = "4.7.1";
12 format = "pyproject";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchPypi {
17 pname = "typing_extensions";
18 inherit version;
19 hash = "sha256-t13cJk8LpWFdt7ohfa65lwGtKVNTxF+elZYzN87u/7I=";
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";
36 changelog = "https://github.com/python/typing_extensions/blob/${version}/CHANGELOG.md";
37 homepage = "https://github.com/python/typing";
38 license = licenses.psfl;
39 maintainers = with maintainers; [ pmiddend ];
40 };
41}