blob: 20f366fdf2255bff81d8f435fd26e13feac4b316 (
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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
numpy,
pytestCheckHook,
pythonAtLeast,
}:
buildPythonPackage rec {
pname = "typish";
version = "1.9.3";
format = "setuptools";
src = fetchFromGitHub {
owner = "ramonhagenaars";
repo = "typish";
tag = "v${version}";
hash = "sha256-LnOg1dVs6lXgPTwRYg7uJ3LCdExYrCxS47UEJxKHhVU=";
};
nativeCheckInputs = [
numpy
pytestCheckHook
];
disabledTestPaths = [
# Requires a very old version of nptyping
# which has a circular dependency on typish
"tests/functions/test_instance_of.py"
];
disabledTests = lib.optionals (pythonAtLeast "3.11") [
# https://github.com/ramonhagenaars/typish/issues/32
"test_get_origin"
];
pythonImportsCheck = [ "typish" ];
meta = {
description = "Python module for checking types of objects";
homepage = "https://github.com/ramonhagenaars/typish";
changelog = "https://github.com/ramonhagenaars/typish/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fmoda3 ];
};
}
|