Unverified Commit 9c21a998 authored by Martin Weinelt's avatar Martin Weinelt Committed by GitHub
Browse files

python3Packages.datashape: drop (#502317)

parents 351c8037 e47af8ad
Loading
Loading
Loading
Loading
+26 −26
Original line number Diff line number Diff line
@@ -1043,57 +1043,57 @@ Our example, `toolz`, does not have any dependencies on other Python packages or
Dependencies can belong to multiple arguments, for example if something is both a build time requirement & a runtime dependency.

The following example shows which arguments are given to [`buildPythonPackage`](#buildpythonpackage-function) in
order to build [`datashape`](https://github.com/blaze/datashape).
order to build [`dirigera`](https://github.com/Leggin/dirigera).

```nix
{
  lib,
  buildPythonPackage,
  fetchPypi,

  # build dependencies
  setuptools,

  # dependencies
  numpy,
  multipledispatch,
  python-dateutil,

  # tests
  fetchFromGitHub,
  pydantic,
  pytestCheckHook,
  requests,
  setuptools,
  websocket-client,
}:

buildPythonPackage (finalAttrs: {
  pname = "datashape";
  version = "0.4.7";
  pname = "dirigera";
  version = "1.2.6";
  pyproject = true;

  src = fetchPypi {
    inherit (finalAttrs) pname version;
    hash = "sha256-FLLvdm1MllKrgTGC6Gb0k0deZeVYvtCCLji/B7uhong=";
  src = fetchFromGitHub {
    owner = "Leggin";
    repo = "dirigera";
    tag = "v${finalAttrs.version}";
    hash = "sha256-5pfzmaIkIEtxDtkhG1lOLSTjWahEDgQKLJKbAG5rBjE=";
  };

  build-system = [ setuptools ];

  dependencies = [
    multipledispatch
    numpy
    python-dateutil
    pydantic
    requests
    websocket-client
  ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "dirigera" ];

  meta = {
    changelog = "https://github.com/blaze/datashape/releases/tag/${finalAttrs.version}";
    homepage = "https://github.com/ContinuumIO/datashape";
    description = "Data description language";
    license = lib.licenses.bsd2;
    description = "Module for controlling the IKEA Dirigera Smart Home Hub";
    homepage = "https://github.com/Leggin/dirigera";
    changelog = "https://github.com/Leggin/dirigera/releases/tag/${finalAttrs.src.tag}";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ fab ];
    mainProgram = "generate-token";
  };
})
```

We can see several runtime dependencies, `numpy`, `multipledispatch`, and
`python-dateutil`. Furthermore, we have [`nativeCheckInputs`](#var-stdenv-nativeCheckInputs) with `pytestCheckHook`.
We can see several runtime dependencies, `pydantic`, `requests`, and
`websocket-client`. Furthermore, we have [`nativeCheckInputs`](#var-stdenv-nativeCheckInputs) with `pytestCheckHook`.
`pytestCheckHook` is a test runner hook and is only used during the [`checkPhase`](#ssec-check-phase) and is
therefore not added to `dependencies`.

+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
@@ -3640,8 +3640,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 { };