1{
2 buildPythonPackage,
3 fetchFromGitHub,
4 hatchling,
5 lib,
6 pytestCheckHook,
7 typing-extensions,
8}:
9
10buildPythonPackage rec {
11 pname = "typing-inspection";
12 version = "0.4.1";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "pydantic";
17 repo = "typing-inspection";
18 tag = "v${version}";
19 hash = "sha256-MzOXl1i+rmr08TSH3Nxc0fFkcjATY6i9dFRLsYp+5m0=";
20 };
21
22 build-system = [ hatchling ];
23
24 dependencies = [
25 typing-extensions
26 ];
27
28 pythonImportsCheck = [ "typing_inspection" ];
29
30 nativeCheckInputs = [
31 pytestCheckHook
32 ];
33
34 meta = {
35 changelog = "https://github.com/pydantic/typing-inspection/blob/${src.tag}/HISTORY.md";
36 description = "Runtime typing introspection tools";
37 homepage = "https://github.com/pydantic/typing-inspection";
38 license = lib.licenses.mit;
39 maintainers = with lib.maintainers; [ dotlambda ];
40 };
41}