Unverified Commit c356f7c8 authored by Sigmanificient's avatar Sigmanificient Committed by Michael Daniels
Browse files

python3Packages.dynd: drop

parent 68ae46b3
Loading
Loading
Loading
Loading
+0 −69
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  cython,
  numpy,
  libdynd,
  fetchpatch,
  cmake,
  fetchFromGitHub,
  pythonAtLeast,
}:

buildPythonPackage rec {
  version = "0.7.2";
  format = "setuptools";
  pname = "dynd";

  disabled = pythonAtLeast "3.11";

  src = fetchFromGitHub {
    owner = "libdynd";
    repo = "dynd-python";
    rev = "v${version}";
    sha256 = "19igd6ibf9araqhq9bxmzbzdz05vp089zxvddkiik3b5gb7l17nh";
  };

  patches = [
    # Fix numpy compatibility
    # https://github.com/libdynd/dynd-python/issues/746
    (fetchpatch {
      url = "https://aur.archlinux.org/cgit/aur.git/plain/numpy-compatibility.patch?h=python-dynd&id=e626acabd041069861311f314ac3dbe9e6fd24b7";
      sha256 = "sha256-oA/3G8CGeDhiYXbNX+G6o3QSb7rkKItuCDCbnK3Rt10=";
      name = "numpy-compatibility.patch";
    })
  ];

  # setup.py invokes git on build but we're fetching a tarball, so
  # can't retrieve git version. We hardcode:
  preConfigure = ''
    substituteInPlace setup.py --replace "ver = check_output(['git', 'describe', '--dirty'," "ver = '${version}'"
    substituteInPlace setup.py --replace "'--always', '--match', 'v*']).decode('ascii').strip('\n')" ""
  '';

  dontUseCmakeConfigure = true;

  nativeBuildInputs = [ cmake ];

  buildInputs = [
    cython
    libdynd.dev
  ];

  propagatedBuildInputs = [
    libdynd
    numpy
  ];

  #  ModuleNotFoundError: No module named 'dynd.config'
  doCheck = false;

  pythonImportsCheck = [ "dynd" ];

  meta = {
    homepage = "http://libdynd.org";
    license = lib.licenses.bsd2;
    description = "Python exposure of dynd";
    maintainers = with lib.maintainers; [ teh ];
  };
}
+1 −0
Original line number Diff line number Diff line
@@ -185,6 +185,7 @@ mapAliases {
  dogpile_cache = throw "'dogpile_cache' has been renamed to/replaced by 'dogpile-cache'"; # Converted to throw 2025-10-29
  duckduckgo-search = throw "duckduckgo-search was renamed to ddgs, use ddgs instead"; # added 2025-10-20
  dukpy = throw "'dukpy' was removed as the only consumer pyload-ng was removed"; # added 2026-03-21
  dynd = throw "'dynd' has been removed due to lack of maintenance"; # added 2026-03-24
  easyeda2ato = throw "easyeda2ato as been removed in favor of atopile-easyda2kicad"; # added 2025-06-08
  EasyProcess = throw "'EasyProcess' has been renamed to/replaced by 'easyprocess'"; # Converted to throw 2025-10-29
  editdistance-s = throw "editdistance-s has been removed since it was added solely for the identity package, which has moved on to ukkonen"; # added 2025-08-04
+0 −2
Original line number Diff line number Diff line
@@ -4819,8 +4819,6 @@ self: super: with self; {
  dynalite-panel = callPackage ../development/python-modules/dynalite-panel { };
  dynd = callPackage ../development/python-modules/dynd { };
  e2b = callPackage ../development/python-modules/e2b { };
  e2b-code-interpreter = callPackage ../development/python-modules/e2b-code-interpreter { };