python3Packages.watchfiles: fix build on Darwin

This commit is contained in:
Enno Richter
2023-02-08 13:51:00 +01:00
parent b0a25c439d
commit 4d89637b5d
2 changed files with 10 additions and 2 deletions
@@ -11,6 +11,8 @@
, pytest-timeout
, pytestCheckHook
, python
, CoreServices
, libiconv
}:
buildPythonPackage rec {
@@ -33,6 +35,11 @@ buildPythonPackage rec {
hash = "sha256-IWONA3o+2emJ7cKEw5xYSMdWzGuUSwn1B70zUDzj7Cw=";
};
buildInputs = lib.optionals stdenv.isDarwin [
CoreServices
libiconv
];
nativeBuildInputs = [
] ++ (with rustPlatform; [
cargoSetupHook
@@ -69,6 +76,5 @@ buildPythonPackage rec {
homepage = "https://watchfiles.helpmanual.io/";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
broken = stdenv.isDarwin;
};
}
+3 -1
View File
@@ -12183,7 +12183,9 @@ self: super: with self; {
inherit (pkgs.darwin.apple_sdk.frameworks) CoreServices;
};
watchfiles = callPackage ../development/python-modules/watchfiles { };
watchfiles = callPackage ../development/python-modules/watchfiles {
inherit (pkgs.darwin.apple_sdk.frameworks) CoreServices;
};
watchgod = callPackage ../development/python-modules/watchgod { };