1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5
6 pytestCheckHook,
7
8 pythonOlder,
9
10 setuptools,
11 setuptools-scm,
12 wheel,
13
14 numpy,
15
16 typing-extensions,
17}:
18
19buildPythonPackage rec {
20 pname = "typing-validation";
21 version = "1.2.12";
22 pyproject = true;
23
24 disabled = pythonOlder "3.7";
25
26 src = fetchFromGitHub {
27 owner = "hashberg-io";
28 repo = "typing-validation";
29 tag = "v${version}";
30 hash = "sha256-N0VAxlxB96NA01c/y4xtoLKoiqAxfhJJV0y/3w6H9ek=";
31 };
32
33 build-system = [
34 setuptools
35 setuptools-scm
36 wheel
37 ];
38
39 dependencies = [ typing-extensions ];
40
41 nativeCheckInputs = [
42 pytestCheckHook
43 numpy
44 ];
45
46 pythonImportsCheck = [ "typing_validation" ];
47
48 meta = with lib; {
49 description = "Simple library for runtime type-checking";
50 homepage = "https://github.com/hashberg-io/typing-validation";
51 changelog = "https://github.com/hashberg-io/typing-validation/releases/tag/${src.tag}";
52 license = licenses.mit;
53 maintainers = with maintainers; [ vizid ];
54 };
55}