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