mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-15 12:30:26 +08:00
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
41 lines
781 B
Nix
41 lines
781 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
cython_0,
|
|
alsa-lib,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "rtmidi-python";
|
|
version = "0.2.2";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "1wpcaxfpbmsjc78g8841kpixr0a3v6zn0ak058s3mm25kcysp4m0";
|
|
};
|
|
|
|
postPatch = ''
|
|
rm rtmidi_python.cpp
|
|
'';
|
|
|
|
nativeBuildInputs = [ cython_0 ];
|
|
buildInputs = lib.optionals stdenv.hostPlatform.isLinux [ alsa-lib ];
|
|
|
|
setupPyBuildFlags = [ "--from-cython" ];
|
|
|
|
# package has no tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "rtmidi_python" ];
|
|
|
|
meta = {
|
|
description = "Python wrapper for RtMidi";
|
|
homepage = "https://github.com/superquadratic/rtmidi-python";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ ];
|
|
};
|
|
}
|