mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 17:03:01 +00:00
Merge pull request #11035 from FRidh/pysoundfile
python pysoundfile: init at 0.8.1
This commit is contained in:
commit
52546be521
@ -12681,6 +12681,32 @@ let
|
||||
};
|
||||
};
|
||||
|
||||
pysoundfile = buildPythonPackage rec {
|
||||
name = "pysoundfile-${version}";
|
||||
version = "0.8.1";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://pypi.python.org/packages/source/P/PySoundFile/PySoundFile-${version}.tar.gz";
|
||||
sha256 = "72c3e23b7c9998460ec78176084ea101e3439596ab29df476bc8508708df84df";
|
||||
};
|
||||
|
||||
buildInputs = with self; [ pytest ];
|
||||
propagatedBuildInputs = with self; [ numpy pkgs.libsndfile cffi ];
|
||||
|
||||
meta = {
|
||||
description = "An audio library based on libsndfile, CFFI and NumPy";
|
||||
license = licenses.bsd3;
|
||||
homepage = https://github.com/bastibe/PySoundFile;
|
||||
maintainer = with maintainers; [ fridh ];
|
||||
};
|
||||
|
||||
prePatch = ''
|
||||
substituteInPlace soundfile.py --replace "'sndfile'" "'${pkgs.libsndfile}/lib/libsndfile.so'"
|
||||
'';
|
||||
|
||||
disabled = isPyPy;
|
||||
};
|
||||
|
||||
python3pika = buildPythonPackage {
|
||||
name = "python3-pika-0.9.14";
|
||||
disabled = !isPy3k;
|
||||
|
Loading…
Reference in New Issue
Block a user