Files
nixpkgs/pkgs/development/python-modules/chart-studio/default.nix
T
Jörg Thalheim 5356420466 treewide: remove unused with statements from maintainer lists
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \
  -e 's!with lib.maintainers; \[ *\];![ ];!' \
  -e 's!with maintainers; \[ *\];![ ];!'
2024-07-29 10:06:20 +08:00

56 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
mock,
nose,
plotly,
pytest,
requests,
retrying,
setuptools,
six,
}:
buildPythonPackage rec {
pname = "chart-studio";
version = "5.22.0";
pyproject = true;
# chart-studio was split from plotly
src = fetchFromGitHub {
owner = "plotly";
repo = "plotly.py";
rev = "refs/tags/v${version}";
hash = "sha256-cEm0vLQ4PAVxvplqK+yayxLpNCvyfZtjZva0Bl2Sdfs=";
};
sourceRoot = "${src.name}/packages/python/chart-studio";
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
plotly
requests
retrying
six
];
nativeCheckInputs = [
mock
nose
pytest
];
# most tests talk to a service
checkPhase = ''
HOME=$TMPDIR pytest chart_studio/tests/test_core chart_studio/tests/test_plot_ly/test_api
'';
meta = with lib; {
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 ];
maintainers = [ ];
};
}