python311Packages.css-inline: fix darwin build

This commit is contained in:
Martin Weinelt 2024-03-16 16:17:22 +01:00
parent 11e7015ec7
commit 5e97947218
No known key found for this signature in database
GPG key ID: 87C1E9888F856759
2 changed files with 6 additions and 1 deletions

View file

@ -9,6 +9,7 @@
# native darwin dependencies
, libiconv
, Security
, SystemConfiguration
# tests
, pytestCheckHook
@ -52,6 +53,7 @@ buildPythonPackage rec {
buildInputs = lib.optionals stdenv.isDarwin [
libiconv
Security
SystemConfiguration
];
pythonImportsCheck = [
@ -66,6 +68,9 @@ buildPythonPackage rec {
disabledTests = [
# fails to connect to local server
"test_remote_stylesheet"
] ++ lib.optionals (stdenv.isDarwin) [
# pyo3_runtime.PanicException: event loop thread panicked
"test_invalid_href"
];
meta = with lib; {

View file

@ -2527,7 +2527,7 @@ self: super: with self; {
css-inline = callPackage ../development/python-modules/css-inline {
inherit (pkgs.darwin) libiconv;
inherit (pkgs.darwin.apple_sdk.frameworks) Security;
inherit (pkgs.darwin.apple_sdk.frameworks) Security SystemConfiguration;
};
css-parser = callPackage ../development/python-modules/css-parser { };