Merge pull request #215300 from elohmeier/watchfiles-darwin

python3Packages.watchfiles: fix build on Darwin
This commit is contained in:
Weijia Wang 2023-02-08 15:14:14 +01:00 committed by GitHub
commit 6b5a3cda27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 2 deletions

View File

@ -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;
};
}

View File

@ -12185,7 +12185,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 { };