Unverified Commit ab579805 authored by Sandro Jäckel's avatar Sandro Jäckel
Browse files

python313Packages.pyzbar: switch to pyproject = true, misc cleanup

parent 71952c30
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -7,23 +7,26 @@
  pillow,
  zbar,
  pytestCheckHook,
  setuptools,
}:

buildPythonPackage rec {
  pname = "pyzbar";
  version = "0.1.9";
  format = "setuptools";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "NaturalHistoryMuseum";
    repo = "pyzbar";
    rev = "v${version}";
    tag = "v${version}";
    sha256 = "8IZQY6qB4r1SUPItDlTDnVQuPs0I38K3yJ6LiPJuwbU=";
  };

  build-system = [ setuptools ];

  buildInputs = [ zbar ];

  propagatedBuildInputs = [
  dependencies = [
    pillow
    numpy
  ];
@@ -34,7 +37,7 @@ buildPythonPackage rec {
  # https://github.com/NixOS/nixpkgs/issues/7307
  postPatch = ''
    substituteInPlace pyzbar/zbar_library.py \
      --replace \
      --replace-fail \
        "find_library('zbar')" \
        '"${lib.getLib zbar}/lib/libzbar${stdenv.hostPlatform.extensions.sharedLibrary}"'
  '';