python3Packages.visions: skip failing tests, cleanup
This commit is contained in:
@@ -2,21 +2,28 @@
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
pythonOlder,
|
||||
pytestCheckHook,
|
||||
|
||||
# build-system
|
||||
setuptools,
|
||||
|
||||
# dependencies
|
||||
attrs,
|
||||
imagehash,
|
||||
matplotlib,
|
||||
multimethod,
|
||||
networkx,
|
||||
numpy,
|
||||
pandas,
|
||||
pillow,
|
||||
puremagic,
|
||||
|
||||
# optional-dependencies
|
||||
shapely,
|
||||
imagehash,
|
||||
pillow,
|
||||
matplotlib,
|
||||
pydot,
|
||||
pygraphviz,
|
||||
shapely,
|
||||
|
||||
# tests
|
||||
pytestCheckHook,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@@ -24,12 +31,10 @@ buildPythonPackage rec {
|
||||
version = "0.8.1";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "dylan-profiler";
|
||||
repo = "visions";
|
||||
rev = "v${version}";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-MHseb1XJ0t7jQ45VXKQclYPgddrzmJAC7cde8qqYhNQ=";
|
||||
};
|
||||
|
||||
@@ -62,19 +67,29 @@ buildPythonPackage rec {
|
||||
]
|
||||
++ lib.flatten (builtins.attrValues 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"
|
||||
];
|
||||
pythonImportsCheck = [ "visions" ];
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
description = "Type system for data analysis in Python";
|
||||
homepage = "https://dylan-profiler.github.io/visions";
|
||||
license = licenses.bsdOriginal;
|
||||
maintainers = with maintainers; [ bcdarwin ];
|
||||
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 ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user