1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 typing-extensions,
6 mypy-extensions,
7 pytestCheckHook,
8}:
9
10buildPythonPackage rec {
11 pname = "typing-inspect";
12 version = "0.9.0";
13 format = "setuptools";
14
15 src = fetchPypi {
16 inherit version;
17 pname = "typing_inspect";
18 hash = "sha256-sj/EL/b272lU5IUsH7USzdGNvqAxNPkfhWqVzMlGH3g=";
19 };
20
21 propagatedBuildInputs = [
22 typing-extensions
23 mypy-extensions
24 ];
25
26 nativeCheckInputs = [ pytestCheckHook ];
27
28 disabledTests = [
29 # https://github.com/ilevkivskyi/typing_inspect/issues/84
30 "test_typed_dict_typing_extension"
31 ];
32
33 pythonImportsCheck = [ "typing_inspect" ];
34
35 meta = with lib; {
36 description = "Runtime inspection utilities for Python typing module";
37 homepage = "https://github.com/ilevkivskyi/typing_inspect";
38 license = licenses.mit;
39 maintainers = with maintainers; [ albakham ];
40 };
41}