Unverified Commit 5464c34f authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

python312Packages.sparse: 0.15.5 -> 0.16.0 (#397670)

parents c154df9f ce6948cd
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  buildPythonPackage,
  fetchFromGitHub,

@@ -59,9 +60,14 @@ buildPythonPackage rec {
  disabledTests = [
    # ValueError: <class 'bool'> can be computed for one-element arrays only.
    "test_dot_with_sparse"

    # ValueError: `shape` was not provided.
    "test_sparse"
  ];

  __darwinAllowLocalNetworking = true;
  # On darwin, tests saturate the entire system, even when constrained to run single-threaded
  # Removing pytest-xdist AND setting --cores to one does not prevent the load from exploding
  doCheck = !stdenv.hostPlatform.isDarwin;

  meta = {
    description = "Generalized Linear Models with Dask";
+7 −3
Original line number Diff line number Diff line
@@ -67,10 +67,14 @@ buildPythonPackage rec {
      # AttributeError: module 'numpy' has no attribute 'product'
      "test_extended_system"
    ]
    ++ lib.optionals stdenv.hostPlatform.isDarwin [
    ++
      lib.optionals
        ((stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64) || stdenv.hostPlatform.isDarwin)
        [
          # AssertionError on a numerical test
          "test_cell_list"

        ]
    ++ lib.optionals stdenv.hostPlatform.isDarwin [
      # Fatal Python error: Aborted
      # matplotlib/backend_bases.py", line 2654 in create_with_canvas
      "test_examples"
+2 −7
Original line number Diff line number Diff line
@@ -20,14 +20,14 @@

buildPythonPackage rec {
  pname = "sparse";
  version = "0.15.5";
  version = "0.16.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "pydata";
    repo = "sparse";
    tag = version;
    hash = "sha256-W4rcq7G/bQsT9oTLieOzWNst5LnIAelRMbm+uUPeQgs=";
    hash = "sha256-ChSEb+IwzutDgYBJxhlunRaF8VvkLHW/ae5RdrljWj0=";
  };

  build-system = [
@@ -56,10 +56,5 @@ buildPythonPackage rec {
    downloadPage = "https://github.com/pydata/sparse/releases/tag/${version}";
    license = lib.licenses.bsd3;
    maintainers = with lib.maintainers; [ GaetanLepage ];
    badPlatforms = [
      # Most tests fail with: Fatal Python error: Segmentation fault
      # numba/typed/typedlist.py", line 344 in append
      "aarch64-linux"
    ];
  };
}