Unverified Commit 69854a43 authored by Weijia Wang's avatar Weijia Wang Committed by GitHub
Browse files

Merge pull request #218753 from dotlambda/adblock-fix

python310Packages.adblock: fix build
parents 1ff196da b41bc9a0
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
, buildPythonPackage
, rustPlatform
, pkg-config
@@ -29,6 +30,15 @@ buildPythonPackage rec {
    hash = "sha256-5g5xdUzH/RTVwu4Vfb5Cb1t0ruG0EXgiXjrogD/+JCU=";
  };

  patches = [
    # https://github.com/ArniDagur/python-adblock/pull/91
    (fetchpatch {
      name = "pep-621-compat.patch";
      url = "https://github.com/ArniDagur/python-adblock/commit/2a8716e0723b60390f0aefd0e05f40ba598ac73f.patch";
      hash = "sha256-n9+LDs0no66OdNZxw3aU57ngWrAbmm6hx4qIuxXoatM=";
    })
  ];

  cargoDeps = rustPlatform.fetchCargoTarball {
    inherit src;
    name = "${pname}-${version}";