python3Packages.adblock: fix build on Darwin
This commit is contained in:
parent
29043644b0
commit
9f9de0069c
|
@ -8,6 +8,7 @@
|
||||||
, openssl
|
, openssl
|
||||||
, publicsuffix-list
|
, publicsuffix-list
|
||||||
, isPy27
|
, isPy27
|
||||||
|
, libiconv
|
||||||
, CoreFoundation
|
, CoreFoundation
|
||||||
, Security
|
, Security
|
||||||
}:
|
}:
|
||||||
|
@ -37,7 +38,7 @@ buildPythonPackage rec {
|
||||||
++ (with rustPlatform; [ cargoSetupHook maturinBuildHook ]);
|
++ (with rustPlatform; [ cargoSetupHook maturinBuildHook ]);
|
||||||
|
|
||||||
buildInputs = [ openssl ]
|
buildInputs = [ openssl ]
|
||||||
++ lib.optionals stdenv.isDarwin [ CoreFoundation Security ];
|
++ lib.optionals stdenv.isDarwin [ libiconv CoreFoundation Security ];
|
||||||
|
|
||||||
PSL_PATH = "${publicsuffix-list}/share/publicsuffix/public_suffix_list.dat";
|
PSL_PATH = "${publicsuffix-list}/share/publicsuffix/public_suffix_list.dat";
|
||||||
|
|
||||||
|
@ -49,7 +50,7 @@ buildPythonPackage rec {
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Python wrapper for Brave's adblocking library, which is written in Rust";
|
description = "Python wrapper for Brave's adblocking library, which is written in Rust";
|
||||||
homepage = "https://github.com/ArniDagur/python-adblock/";
|
homepage = "https://github.com/ArniDagur/python-adblock/";
|
||||||
maintainers = with maintainers; [ petabyteboy ];
|
maintainers = with maintainers; [ petabyteboy dotlambda ];
|
||||||
license = with licenses; [ asl20 mit ];
|
license = with licenses; [ asl20 mit ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue