Something went wrong. Try again.
lol
Something went wrong. Try again.
1.9 kB · 96 lines
Nix
at master
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697{ lib, stdenv, buildPythonPackage, fetchFromGitHub,
# build-system hatch-vcs, hatchling,
# dependencies colorcet, numpy, pandas, panel, param, pyviz-comms,
# tests pytestCheckHook, pytest-asyncio, flaky,}:
buildPythonPackage rec { pname = "holoviews"; version = "1.22.1"; pyproject = true;
src = fetchFromGitHub { owner = "holoviz"; repo = "holoviews"; tag = "v${version}"; hash = "sha256-rZZQgM8gchWTsgA47BVWblzWiWMuHK2vAZD/1Z8BHAk="; };
postPatch = '' substituteInPlace pyproject.toml \ --replace '"ignore:No data was collected:coverage.exceptions.CoverageWarning",' "" '';
build-system = [ hatch-vcs hatchling ];
dependencies = [ colorcet numpy pandas panel param pyviz-comms ];
nativeCheckInputs = [ pytestCheckHook pytest-asyncio flaky ];
pytestFlags = [ "-Wignore::FutureWarning" ];
disabledTests = [ # All the below fail due to some change in flaky API "test_periodic_param_fn_non_blocking" "test_callback_cleanup" "test_poly_edit_callback" "test_launch_server_with_complex_plot" "test_launch_server_with_stream" "test_launch_simple_server" "test_server_dynamicmap_with_dims" "test_server_dynamicmap_with_stream" "test_server_dynamicmap_with_stream_dims"
# ModuleNotFoundError: No module named 'param' "test_no_blocklist_imports" ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ # Fails due to font rendering differences "test_categorical_axis_fontsize_both" ];
pythonImportsCheck = [ "holoviews" ];
meta = { description = "Python data analysis and visualization seamless and simple"; changelog = "https://github.com/holoviz/holoviews/releases/tag/${src.tag}"; mainProgram = "holoviews"; homepage = "https://www.holoviews.org/"; license = lib.licenses.bsd3; maintainers = [ ]; };}