Merge pull request #60086 from marsam/python-doit-fix-darwin

doit: fix darwin build
This commit is contained in:
Pascal Wittmann 2019-04-23 17:14:53 +02:00 committed by GitHub
commit 3e1ee4240f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 31 additions and 1 deletions

View File

@ -0,0 +1,24 @@
{ lib, buildPythonPackage, fetchPypi, CoreFoundation, CoreServices }:
buildPythonPackage rec {
pname = "MacFSEvents";
version = "0.8.1";
src = fetchPypi {
inherit pname version;
sha256 = "1324b66b356051de662ba87d84f73ada062acd42b047ed1246e60a449f833e10";
};
buildInputs = [ CoreFoundation CoreServices ];
# Some tests fail under nix build directory
doCheck = false;
meta = with lib; {
homepage = https://github.com/malthe/macfsevents;
description = "Thread-based interface to file system observation primitives";
license = licenses.bsd2;
maintainers = [ maintainers.marsam ];
platforms = platforms.darwin;
};
}

View File

@ -15,7 +15,9 @@ in python3Packages.buildPythonApplication {
buildInputs = with python3Packages; [ mock pytest ];
propagatedBuildInputs = with python3Packages; [ cloudpickle pyinotify ];
propagatedBuildInputs = with python3Packages; [ cloudpickle ]
++ stdenv.lib.optional stdenv.isLinux pyinotify
++ stdenv.lib.optional stdenv.isDarwin macfsevents;
# Tests fail due to mysterious gdbm.open() resource temporarily
# unavailable errors.

View File

@ -3136,6 +3136,10 @@ in {
Mako = callPackage ../development/python-modules/Mako { };
macfsevents = callPackage ../development/python-modules/macfsevents {
inherit (pkgs.darwin.apple_sdk.frameworks) CoreFoundation CoreServices;
};
manifestparser = callPackage ../development/python-modules/marionette-harness/manifestparser.nix {};
marionette_driver = callPackage ../development/python-modules/marionette-harness/marionette_driver.nix {};
mozcrash = callPackage ../development/python-modules/marionette-harness/mozcrash.nix {};