Skip to content

Commit ca0a4e2

Browse files
committedMay 7, 2017
pythonPackages.libsoundtouch: init at 0.3.0
1 parent c1aa7b2 commit ca0a4e2

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{ buildPythonPackage
2+
, fetchFromGitHub
3+
, stdenv
4+
, lib
5+
, pythonOlder
6+
, requests2
7+
, enum34
8+
}:
9+
10+
buildPythonPackage rec {
11+
name = "${pname}-${version}";
12+
pname = "libsoundtouch";
13+
version = "0.3.0";
14+
15+
src = fetchFromGitHub {
16+
owner = "CharlesBlonde";
17+
repo = "libsoundtouch";
18+
rev = "7c8f943298bcae5f0c25ad7be7469de51373cdbd";
19+
sha256 = "1a9mdy09n4bjx6nang7wfn2nq87dg2s18px4yqsj53mn5kjf44n0";
20+
};
21+
22+
postPatch = lib.optionalString (! (pythonOlder "3.4")) ''
23+
substituteInPlace setup.py --replace "'enum34>=1.1.6'" ""
24+
'';
25+
26+
propagatedBuildInputs = [ requests2 enum34 ];
27+
28+
doCheck = false;
29+
30+
meta = with stdenv.lib; {
31+
description = "Bose Soundtouch Python library";
32+
homepage = https://github.com/CharlesBlonde/libsoundtouch;
33+
license = licenses.asl20;
34+
};
35+
}

‎pkgs/top-level/python-packages.nix

+2
Original file line numberDiff line numberDiff line change
@@ -7814,6 +7814,8 @@ in {
78147814
libsexy = pkgs.libsexy;
78157815
};
78167816

7817+
libsoundtouch = callPackage ../development/python-modules/libsoundtouch { };
7818+
78177819
libthumbor = buildPythonPackage rec {
78187820
name = "libthumbor-${version}";
78197821
version = "1.2.0";

0 commit comments

Comments
 (0)
Please sign in to comment.