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