blob: b7db126aa9bbec9d43ba2eb15b98f6738a2cc15f (
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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
hypothesis,
mypy,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "algebraic-data-types";
version = "0.2.1";
format = "setuptools";
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 = {
description = "Algebraic data types for Python";
homepage = "https://github.com/jspahrsummers/adt";
license = lib.licenses.mit;
};
}
|