blob: 9c19470fbddc918be57121333bf3945ef2850b66 (
plain) (
blame)
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
|
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, hypothesis
, mypy
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "algebraic-data-types";
version = "0.2.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "jspahrsummers";
repo = "adt";
rev = "v" + version;
hash = "sha256-RHLI5rmFxklzG9dyYgYfSS/srCjcxNpzNcK/RPNJBPE=";
};
nativeCheckInputs = [
pytestCheckHook
hypothesis
mypy
];
disabledTestPaths = [
# AttributeError: module 'mypy.types' has no attribute 'TypeVarDef'
"tests/test_mypy_plugin.py"
];
pythonImportsCheck = [
"adt"
];
meta = with lib; {
description = "Algebraic data types for Python";
homepage = "https://github.com/jspahrsummers/adt";
license = licenses.mit;
maintainers = with maintainers; [ uri-canva ];
};
}
|