python311Packages.mido: fix build, set up optional dependencies
This commit is contained in:
parent
4913815067
commit
97011cdd1c
|
@ -3,12 +3,27 @@
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, substituteAll
|
, substituteAll
|
||||||
, portmidi
|
|
||||||
, python-rtmidi
|
# build-system
|
||||||
, pytestCheckHook
|
|
||||||
, pythonOlder
|
|
||||||
, setuptools
|
, setuptools
|
||||||
, setuptools-scm
|
, setuptools-scm
|
||||||
|
, pythonRelaxDepsHook
|
||||||
|
|
||||||
|
# dependencies
|
||||||
|
, packaging
|
||||||
|
|
||||||
|
# native dependencies
|
||||||
|
, portmidi
|
||||||
|
|
||||||
|
# optional-dependencies
|
||||||
|
, pygame
|
||||||
|
, python-rtmidi
|
||||||
|
, rtmidi-python
|
||||||
|
|
||||||
|
# tests
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
|
@ -20,7 +35,7 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "sha256-Ouootu1zD3N9WxLaNXjevp3FAFj6Nw/pzt7ZGJtnw0g=";
|
hash = "sha256-Ouootu1zD3N9WxLaNXjevp3FAFj6Nw/pzt7ZGJtnw0g=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
|
@ -30,15 +45,26 @@ buildPythonPackage rec {
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [
|
build-system = [
|
||||||
setuptools
|
setuptools
|
||||||
setuptools-scm
|
setuptools-scm
|
||||||
|
pythonRelaxDepsHook
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
pythonRelaxDeps = [
|
||||||
python-rtmidi
|
"packaging"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
packaging
|
||||||
|
];
|
||||||
|
|
||||||
|
optional-dependencies = {
|
||||||
|
ports-pygame = [ pygame ];
|
||||||
|
ports-rtmidi = [ python-rtmidi ];
|
||||||
|
ports-rtmidi-python = [ rtmidi-python ];
|
||||||
|
};
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in New Issue
Block a user