Commit 08f9183d authored by Frederik Rietdijk's avatar Frederik Rietdijk
Browse files

python.pkgs.sounddevice: 0.3.6 -> 0.3.8

parent 5ecc470b
Loading
Loading
Loading
Loading
+34 −0
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchPypi
, cffi
, numpy
, portaudio
}:

buildPythonPackage rec {
  pname = "sounddevice";
  name = "${pname}-${version}";
  version = "0.3.8";

  src = fetchPypi {
    inherit pname version;
    sha256 = "dc5ec8534c3831ab133c497721f3aaeed4f5084b0eda842f0c0ada09f2f066dc";
  };

  propagatedBuildInputs = [ cffi numpy portaudio ];

  # No tests included nor upstream available.
  doCheck = false;

  prePatch = ''
    substituteInPlace sounddevice.py --replace "'portaudio'" "'${portaudio}/lib/libportaudio.so.2'"
  '';

  meta = {
    description = "Play and Record Sound with Python";
    homepage = http://python-sounddevice.rtfd.org/;
    license = with lib.licenses; [ mit ];
    maintainers = with lib.maintainers; [ fridh ];
  };
}
 No newline at end of file
+1 −25
Original line number Diff line number Diff line
@@ -21773,31 +21773,7 @@ in {
    };
  };
  sounddevice = buildPythonPackage rec {
    name = "sounddevice-${version}";
    version = "0.3.6";
    src = pkgs.fetchurl {
      url = "mirror://pypi/s/sounddevice/${name}.tar.gz";
      sha256 = "4ef39be2d13069fbad8c69ac259e018d96ce55c23b529a7e0be9bd9a76e2e8da";
    };
    propagatedBuildInputs = with self; [ cffi numpy pkgs.portaudio ];
    # No tests included nor upstream available.
    doCheck = false;
    prePatch = ''
      substituteInPlace sounddevice.py --replace "'portaudio'" "'${pkgs.portaudio}/lib/libportaudio.so.2'"
    '';
    meta = {
      description = "Play and Record Sound with Python";
      homepage = http://python-sounddevice.rtfd.org/;
      license = with licenses; [ mit ];
      maintainers = with maintainers; [ fridh ];
    };
  };
  sounddevice = callPackage ../development/python-modules/sounddevice { };
  stevedore = callPackage ../development/python-modules/stevedore {};