nixpkgs/pkgs/development/python-modules/seaborn/default.nix
Martin Weinelt 6dd0d000d3 python310Packages.seaborn: Disable failing test
and reenable tests that were disabeld for mpl 3.5. Also use
pytest-xdist, as upstream does, because otherwise these tests are taking
ages.
2023-03-03 23:59:32 +01:00

70 lines
1.3 KiB
Nix

{ lib
, stdenv
, buildPythonPackage
, fetchPypi
, flit-core
, matplotlib
, pytest-xdist
, pytestCheckHook
, numpy
, pandas
, pythonOlder
, scipy
}:
buildPythonPackage rec {
pname = "seaborn";
version = "0.12.2";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-N0ZF82UJ0NyriVy6W0fa8Fhvd7/js2yXxgfbfaW+ATk=";
};
nativeBuildInputs = [
flit-core
];
propagatedBuildInputs = [
matplotlib
numpy
pandas
scipy
];
nativeCheckInputs = [
pytest-xdist
pytestCheckHook
];
disabledTests = [
# incompatible with matplotlib 3.7
# https://github.com/mwaskom/seaborn/issues/3288
"test_subplot_kws"
# requires internet connection
"test_load_dataset_string_error"
] ++ lib.optionals (!stdenv.hostPlatform.isx86) [
# overly strict float tolerances
"TestDendrogram"
];
# All platforms should use Agg. Let's set it explicitly to avoid probing GUI
# backends (leads to crashes on macOS).
MPLBACKEND="Agg";
pythonImportsCheck = [
"seaborn"
];
meta = with lib; {
description = "Statistical data visualization";
homepage = "https://seaborn.pydata.org/";
license = with licenses; [ bsd3 ];
maintainers = with maintainers; [ fridh ];
};
}