Commit cb45976b authored by Anthony ROUSSEL's avatar Anthony ROUSSEL
Browse files

python311Packages.pyeclib: 1.6.1 -> 1.6.2

parent 5114de53
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -12,21 +12,17 @@

buildPythonPackage rec {
  pname = "pyeclib";
  version = "1.6.1";
  version = "1.6.2";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "openstack";
    repo = "pyeclib";
    rev = "refs/tags/${version}";
    hash = "sha256-pa3majZ68+DQGtgGCpZVRshof+w9jvpxreo4dkckLXk=";
    hash = "sha256-LZQNJU7QEoHo+RWvHnQkNxBg6t322u/c3PyBhy1eVZc=";
  };

  postPatch = ''
    # patch dlopen call
    substituteInPlace src/c/pyeclib_c/pyeclib_c.c \
      --replace-fail "liberasurecode.so" "${liberasurecode}/lib/liberasurecode.so"

    # python's platform.platform() doesn't return "Darwin" (anymore?)
    substituteInPlace setup.py \
      --replace-fail '"Darwin"' '"macOS"'