Merge pull request #160302 from azuwis/rtmidi

This commit is contained in:
Sandro 2022-02-20 21:33:47 +01:00 committed by GitHub
commit 7a73a0da07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 46 additions and 7 deletions

View File

@ -1,5 +1,17 @@
{ lib, buildPythonPackage, fetchPypi, isPy27
, pkg-config, alsa-lib, libjack2, tox, flake8, alabaster
{ lib
, stdenv
, buildPythonPackage
, fetchPypi
, isPy27
, pkg-config
, alsa-lib
, libjack2
, tox
, flake8
, alabaster
, CoreAudio
, CoreMIDI
, CoreServices
}:
buildPythonPackage rec {
@ -13,7 +25,15 @@ buildPythonPackage rec {
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ alsa-lib libjack2 ];
buildInputs = [
libjack2
] ++ lib.optionals stdenv.isLinux [
alsa-lib
] ++ lib.optionals stdenv.isDarwin [
CoreAudio
CoreMIDI
CoreServices
];
checkInputs = [
tox
flake8

View File

@ -1,4 +1,13 @@
{ lib, buildPythonPackage, fetchPypi, cython, alsa-lib }:
{ lib
, stdenv
, buildPythonPackage
, fetchPypi
, cython
, alsa-lib
, CoreAudio
, CoreMIDI
, CoreServices
}:
buildPythonPackage rec {
pname = "rtmidi-python";
@ -14,7 +23,13 @@ buildPythonPackage rec {
'';
nativeBuildInputs = [ cython ];
buildInputs = [ alsa-lib ];
buildInputs = lib.optionals stdenv.isLinux [
alsa-lib
] ++ lib.optionals stdenv.isDarwin [
CoreAudio
CoreMIDI
CoreServices
];
setupPyBuildFlags = [ "--from-cython" ];

View File

@ -8169,7 +8169,9 @@ in {
python-registry = callPackage ../development/python-modules/python-registry { };
python-rtmidi = callPackage ../development/python-modules/python-rtmidi { };
python-rtmidi = callPackage ../development/python-modules/python-rtmidi {
inherit (pkgs.darwin.apple_sdk.frameworks) CoreAudio CoreMIDI CoreServices;
};
python-sat = callPackage ../development/python-modules/python-sat { };
@ -8815,7 +8817,9 @@ in {
rstcheck = callPackage ../development/python-modules/rstcheck { };
rtmidi-python = callPackage ../development/python-modules/rtmidi-python { };
rtmidi-python = callPackage ../development/python-modules/rtmidi-python {
inherit (pkgs.darwin.apple_sdk.frameworks) CoreAudio CoreMIDI CoreServices;
};
rtoml = callPackage ../development/python-modules/rtoml { };