pythonPackages.watchdog: remove pkgs from inputs, mark broken on darwin

This commit is contained in:
Sandro Jäckel 2021-03-09 09:34:39 +01:00
parent 545b85e0ef
commit c9a3ac5d3c
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5
2 changed files with 9 additions and 6 deletions

View file

@ -1,13 +1,14 @@
{ lib, stdenv { lib
, stdenv
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, fetchpatch , fetchpatch
, argh , argh
, pathtools , pathtools
, pyyaml , pyyaml
, pkgs
, pytest-cov , pytest-cov
, pytestCheckHook , pytestCheckHook
, CoreServices
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -27,8 +28,7 @@ buildPythonPackage rec {
}) })
]; ];
buildInputs = lib.optionals stdenv.isDarwin buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ];
[ pkgs.darwin.apple_sdk.frameworks.CoreServices ];
propagatedBuildInputs = [ propagatedBuildInputs = [
argh argh
@ -48,6 +48,7 @@ buildPythonPackage rec {
homepage = "https://github.com/gorakhargosh/watchdog"; homepage = "https://github.com/gorakhargosh/watchdog";
license = licenses.asl20; license = licenses.asl20;
maintainers = with maintainers; [ goibhniu ]; maintainers = with maintainers; [ goibhniu ];
# error: use of undeclared identifier 'kFSEventStreamEventFlagItemCloned'
broken = stdenv.isDarwin;
}; };
} }

View file

@ -8471,7 +8471,9 @@ in {
wasmer = callPackage ../development/python-modules/wasmer { }; wasmer = callPackage ../development/python-modules/wasmer { };
watchdog = callPackage ../development/python-modules/watchdog { }; watchdog = callPackage ../development/python-modules/watchdog {
inherit (pkgs.darwin.apple_sdk.frameworks) CoreServices;
};
waterfurnace = callPackage ../development/python-modules/waterfurnace { }; waterfurnace = callPackage ../development/python-modules/waterfurnace { };