83405b6dd2
GitOrigin-RevId: ac718d02867a84b42522a0ece52d841188208f2c
69 lines
1.3 KiB
Nix
69 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 ];
|
|
};
|
|
}
|