2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
2022-05-18 14:49:53 +00:00
|
|
|
, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2022-09-30 11:47:45 +00:00
|
|
|
, flit-core
|
2020-04-24 23:36:52 +00:00
|
|
|
, matplotlib
|
2021-12-06 16:07:01 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, numpy
|
|
|
|
, pandas
|
|
|
|
, pythonOlder
|
|
|
|
, scipy
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "seaborn";
|
2022-09-30 11:47:45 +00:00
|
|
|
version = "0.12.0";
|
|
|
|
format = "pyproject";
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-09-30 11:47:45 +00:00
|
|
|
hash = "sha256-iT8XKS2LrKYWwVeN21jrJcctYi9U/F7jKcggfcm1eyM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
flit-core
|
|
|
|
];
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
matplotlib
|
|
|
|
numpy
|
|
|
|
pandas
|
|
|
|
scipy
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-26 17:43:05 +00:00
|
|
|
disabledTests = [
|
2022-05-18 14:49:53 +00:00
|
|
|
# incompatible with matplotlib 3.5
|
2021-12-26 17:43:05 +00:00
|
|
|
"TestKDEPlotBivariate"
|
|
|
|
"TestBoxPlotter"
|
|
|
|
"TestCatPlot"
|
|
|
|
"TestKDEPlotUnivariate"
|
|
|
|
"test_with_rug"
|
|
|
|
"test_bivariate_kde_norm"
|
2022-05-18 14:49:53 +00:00
|
|
|
] ++ lib.optionals (!stdenv.hostPlatform.isx86) [
|
|
|
|
# overly strict float tolerances
|
|
|
|
"TestDendrogram"
|
2021-12-26 17:43:05 +00:00
|
|
|
];
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
pythonImportsCheck = [
|
2021-12-06 16:07:01 +00:00
|
|
|
"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/";
|
2021-12-26 17:43:05 +00:00
|
|
|
license = with licenses; [ bsd3 ];
|
|
|
|
maintainers = with maintainers; [ fridh ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|