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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
# dependencies
attrs,
multimethod,
networkx,
numpy,
pandas,
puremagic,
# optional-dependencies
shapely,
imagehash,
pillow,
matplotlib,
pydot,
pygraphviz,
# tests
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "visions";
version = "0.8.1";
pyproject = true;
src = fetchFromGitHub {
owner = "dylan-profiler";
repo = "visions";
tag = "v${version}";
hash = "sha256-MHseb1XJ0t7jQ45VXKQclYPgddrzmJAC7cde8qqYhNQ=";
};
nativeBuildInputs = [ setuptools ];
dependencies = [
attrs
multimethod
networkx
numpy
pandas
puremagic
];
optional-dependencies = {
type-geometry = [ shapely ];
type-image-path = [
imagehash
pillow
];
plotting = [
matplotlib
pydot
pygraphviz
];
};
nativeCheckInputs = [
pytestCheckHook
]
++ lib.concatAttrValues optional-dependencies;
disabledTests = [
# TypeError: Converting `np.inexact` or `np.floating` to a dtype not allowed
"test_declarative"
];
disabledTestPaths = [
# requires running Apache Spark:
"tests/spark_/typesets/test_spark_standard_set.py"
# multimethod.DispatchError
"tests/numpy_/typesets/test_standard_set.py::test_cast"
"tests/numpy_/typesets/test_standard_set.py::test_conversion"
"tests/numpy_/typesets/test_standard_set.py::test_inference"
];
pythonImportsCheck = [ "visions" ];
meta = {
description = "Type system for data analysis in Python";
homepage = "https://dylan-profiler.github.io/visions";
downloadPage = "https://github.com/dylan-profiler/visions";
changelog = "https://github.com/dylan-profiler/visions/releases/tag/${src.tag}";
license = lib.licenses.bsdOriginal;
maintainers = with lib.maintainers; [ bcdarwin ];
};
}
|