2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
flit-core,
|
|
|
|
matplotlib,
|
|
|
|
pytest-xdist,
|
|
|
|
pytestCheckHook,
|
|
|
|
numpy,
|
|
|
|
pandas,
|
|
|
|
pythonOlder,
|
|
|
|
scipy,
|
|
|
|
statsmodels,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "seaborn";
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "0.13.2";
|
2022-09-30 11:47:45 +00:00
|
|
|
format = "pyproject";
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mwaskom";
|
|
|
|
repo = "seaborn";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-02-07 01:22:34 +00:00
|
|
|
hash = "sha256-aGIVcdG/XN999nYBHh3lJqGa3QVt0j8kmzaxdkULznY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ flit-core ];
|
2022-09-30 11:47:45 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
matplotlib
|
|
|
|
numpy
|
|
|
|
pandas
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
passthru.optional-dependencies = {
|
|
|
|
stats = [
|
|
|
|
scipy
|
|
|
|
statsmodels
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2023-03-15 16:39:30 +00:00
|
|
|
pytest-xdist
|
2021-12-06 16:07:01 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
disabledTests =
|
|
|
|
[
|
|
|
|
# requires internet connection
|
|
|
|
"test_load_dataset_string_error"
|
|
|
|
]
|
|
|
|
++ lib.optionals (!stdenv.hostPlatform.isx86) [
|
|
|
|
# overly strict float tolerances
|
|
|
|
"TestDendrogram"
|
|
|
|
];
|
2021-12-26 17:43:05 +00:00
|
|
|
|
2023-02-22 10:55:15 +00:00
|
|
|
# All platforms should use Agg. Let's set it explicitly to avoid probing GUI
|
|
|
|
# backends (leads to crashes on macOS).
|
2024-06-05 15:53:02 +00:00
|
|
|
env.MPLBACKEND = "Agg";
|
2023-02-22 10:55:15 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "seaborn" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-26 17:43:05 +00:00
|
|
|
meta = with lib; {
|
2022-09-30 11:47:45 +00:00
|
|
|
description = "Statistical data visualization";
|
2020-10-07 09:15:18 +00:00
|
|
|
homepage = "https://seaborn.pydata.org/";
|
2023-11-16 04:20:00 +00:00
|
|
|
changelog = "https://github.com/mwaskom/seaborn/blob/master/doc/whatsnew/${src.rev}.rst";
|
2021-12-26 17:43:05 +00:00
|
|
|
license = with licenses; [ bsd3 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|