Merge pull request #330248 from pyrox0/denose/chart-studio

python312Packages.chart-studio: Remove nose dependency
This commit is contained in:
Emily
2024-08-10 03:07:14 +01:00
committed by GitHub
@@ -3,53 +3,56 @@
buildPythonPackage,
fetchFromGitHub,
mock,
nose,
plotly,
pytest,
requests,
retrying,
setuptools,
six,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "chart-studio";
version = "5.23.0";
version = "1.1.0-unstable-2024-07-23";
pyproject = true;
# chart-studio was split from plotly
src = fetchFromGitHub {
owner = "plotly";
repo = "plotly.py";
rev = "refs/tags/v${version}";
# We use plotly's upstream version as it's the same repo, but chart studio has its own version number.
rev = "v5.23.0";
hash = "sha256-K1hEs00AGBCe2fgytyPNWqE5M0jU5ESTzynP55kc05Y=";
};
sourceRoot = "${src.name}/packages/python/chart-studio";
nativeBuildInputs = [ setuptools ];
build-system = [ setuptools ];
propagatedBuildInputs = [
dependencies = [
plotly
requests
retrying
six
];
nativeCheckInputs = [
mock
nose
pytest
pytestCheckHook
];
# most tests talk to a service
checkPhase = ''
HOME=$TMPDIR pytest chart_studio/tests/test_core chart_studio/tests/test_plot_ly/test_api
preCheck = ''
export HOME=$(mktemp -d)
'';
meta = with lib; {
# most tests talk to a network service, so only run ones that don't do that.
pytestFlagsArray = [
"chart_studio/tests/test_core"
"chart_studio/tests/test_plot_ly/test_api"
];
meta = {
description = "Utilities for interfacing with Plotly's Chart Studio service";
homepage = "https://github.com/plotly/plotly.py/tree/master/packages/python/chart-studio";
license = with licenses; [ mit ];
license = with lib.licenses; [ mit ];
maintainers = [ ];
};
}