uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
64
pkgs/development/python-modules/wavefile/default.nix
Normal file
64
pkgs/development/python-modules/wavefile/default.nix
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, setuptools
|
||||
, pyaudio
|
||||
, numpy
|
||||
, libsndfile
|
||||
, substituteAll
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "wavefile";
|
||||
version = "1.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "vokimon";
|
||||
repo = "python-wavefile";
|
||||
rev = "python-wavefile-${version}";
|
||||
sha256 = "9sHj1gb93mCVpejRGSdLJzeFDCeTflZctE7kMWfqFrE=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
pyaudio
|
||||
libsndfile
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
numpy
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pyaudio
|
||||
numpy
|
||||
libsndfile
|
||||
];
|
||||
|
||||
patches = [
|
||||
# Fix check error
|
||||
# OSError: libsndfile.so.1: cannot open shared object file: No such file or directory
|
||||
(substituteAll {
|
||||
src = ./libsndfile.py.patch;
|
||||
libsndfile = "${lib.getLib libsndfile}/lib/libsndfile${stdenv.hostPlatform.extensions.sharedLibrary}";
|
||||
})
|
||||
];
|
||||
|
||||
doCheck = false; # all test files (test/wavefileTest.py) are failing
|
||||
|
||||
pythonImportsCheck = [
|
||||
"wavefile"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Pythonic libsndfile wrapper to read and write audio files";
|
||||
homepage = "https://github.com/vokimon/python-wavefile";
|
||||
changelog = "https://github.com/vokimon/python-wavefile#version-history";
|
||||
maintainers = with maintainers; [ yuu ];
|
||||
license = licenses.gpl3Plus;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue