Unverified Commit 8d9b79f1 authored by Tom Hunze's avatar Tom Hunze
Browse files

python3Packages.datashape: drop

datashape's last release was in December 2016 [1], upstream has seen no
activity since April 2019 [2], and the package is broken with
Python 3.14 [3].

[1] https://github.com/blaze/datashape/tags
[2] https://github.com/blaze/datashape
[3] https://hydra.nixos.org/build/324627418/nixlog/1
parent 79c66239
Loading
Loading
Loading
Loading
+0 −69
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,

  # build-system
  setuptools,
  versioneer,

  # dependencies
  multipledispatch,
  numpy,
  python-dateutil,

  # tests
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "datashape";
  version = "0.5.4";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "blaze";
    repo = "datashape";
    tag = version;
    hash = "sha256-jkGdzDSh2JHQ/Fvft/QPmpmWUSiFWT5OLX0HKaeQFGY=";
  };

  postPatch = ''
    # Remove vendorized versioneer.py
    rm versioneer.py
  '';

  build-system = [
    setuptools
    versioneer
  ];

  dependencies = [
    multipledispatch
    numpy
    python-dateutil
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  disabledTests = [
    # AttributeError: `np.unicode_` was removed in the NumPy 2.0 release. Use `np.str_` instead.
    "test_from_numpy_dtype_fails"
    "test_string_from_CType_classmethod"
  ];

  disabledTestPaths = [
    # numpy incompatibilities
    # https://github.com/blaze/datashape/issues/232
    "datashape/tests/test_str.py"
    "datashape/tests/test_user.py"
  ];
  meta = {
    description = "Data description language";
    homepage = "https://github.com/ContinuumIO/datashape";
    changelog = "https://github.com/blaze/datashape/releases/tag/${version}";
    license = lib.licenses.bsd2;
  };
}
+1 −0
Original line number Diff line number Diff line
@@ -136,6 +136,7 @@ mapAliases {
  cx_Freeze = throw "'cx_Freeze' has been renamed to/replaced by 'cx-freeze'"; # Converted to throw 2025-10-29
  cx_oracle = throw "'cx_oracle' has been renamed to/replaced by 'cx-oracle'"; # Converted to throw 2025-10-29
  dalle-mini = throw "'dalle-mini' has been removed due to lack of upstream maintenance"; # added 2026-02-26
  datashape = throw "'datashape' has been removed as it was unmaintained upstream"; # Added 2026-03-22
  datatable = throw "'datatable' has been removed due to lack of upstream maintenance"; # added 2026-02-02
  dateutil = throw "'dateutil' has been renamed to/replaced by 'python-dateutil'"; # Converted to throw 2025-10-29
  debian = throw "'debian' has been renamed to/replaced by 'python-debian'"; # Converted to throw 2025-10-29
+0 −2
Original line number Diff line number Diff line
@@ -3654,8 +3654,6 @@ self: super: with self; {
  datashader = callPackage ../development/python-modules/datashader { };
  datashape = callPackage ../development/python-modules/datashape { };
  datashaper = callPackage ../development/python-modules/datashaper { };
  datasketch = callPackage ../development/python-modules/datasketch { };