summary refs log tree commit diff
path: root/pkgs/development/python-modules/libsoundtouch/default.nix
blob: e89b606879bb98164946e548fa9ff59ed41371fb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{ buildPythonPackage
, fetchFromGitHub
, stdenv
, lib
, pythonOlder
, requests
, enum34
}:

buildPythonPackage {
  pname   = "libsoundtouch";
  version = "0.4.0";

  src = fetchFromGitHub {
    owner  = "CharlesBlonde";
    repo   = "libsoundtouch";
    rev    = "875074b7a23734021974345b3dc297918e453aa2";
    sha256 = "1psd556j4x77hjxahxxgdgnq2mcd769whvnf0gmwf3jy2svfkqlg";
  };

  postPatch = lib.optionalString (! (pythonOlder "3.4")) ''
    substituteInPlace setup.py --replace "'enum34>=1.1.6'" ""
  '';

  propagatedBuildInputs = [ requests enum34 ];

  doCheck = false;

  meta = with stdenv.lib; {
    description = "Bose Soundtouch Python library";
    homepage    = https://github.com/CharlesBlonde/libsoundtouch;
    license     = licenses.asl20;
  };
}