about summary refs log tree commit diff
path: root/pkgs/development/python-modules/libsoundtouch
diff options
context:
space:
mode:
authorobadz <obadz-git@obadz.com>2017-05-07 01:38:59 +0100
committerobadz <obadz-git@obadz.com>2017-05-07 11:27:10 +0100
commitca0a4e2a9a80759000ec166c8083bff45e3e9c38 (patch)
tree96d8001e1322436545a660c58e2fbedd96266093 /pkgs/development/python-modules/libsoundtouch
parentc1aa7b2051b54dd293e43b845fa3d686b69304c2 (diff)
downloadnixlib-ca0a4e2a9a80759000ec166c8083bff45e3e9c38.tar
nixlib-ca0a4e2a9a80759000ec166c8083bff45e3e9c38.tar.gz
nixlib-ca0a4e2a9a80759000ec166c8083bff45e3e9c38.tar.bz2
nixlib-ca0a4e2a9a80759000ec166c8083bff45e3e9c38.tar.lz
nixlib-ca0a4e2a9a80759000ec166c8083bff45e3e9c38.tar.xz
nixlib-ca0a4e2a9a80759000ec166c8083bff45e3e9c38.tar.zst
nixlib-ca0a4e2a9a80759000ec166c8083bff45e3e9c38.zip
pythonPackages.libsoundtouch: init at 0.3.0
Diffstat (limited to 'pkgs/development/python-modules/libsoundtouch')
-rw-r--r--pkgs/development/python-modules/libsoundtouch/default.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/libsoundtouch/default.nix b/pkgs/development/python-modules/libsoundtouch/default.nix
new file mode 100644
index 000000000000..2269a9d2a8bd
--- /dev/null
+++ b/pkgs/development/python-modules/libsoundtouch/default.nix
@@ -0,0 +1,35 @@
+{ buildPythonPackage
+, fetchFromGitHub
+, stdenv
+, lib
+, pythonOlder
+, requests2
+, enum34
+}:
+
+buildPythonPackage rec {
+  name    = "${pname}-${version}";
+  pname   = "libsoundtouch";
+  version = "0.3.0";
+
+  src = fetchFromGitHub {
+    owner  = "CharlesBlonde";
+    repo   = "libsoundtouch";
+    rev    = "7c8f943298bcae5f0c25ad7be7469de51373cdbd";
+    sha256 = "1a9mdy09n4bjx6nang7wfn2nq87dg2s18px4yqsj53mn5kjf44n0";
+  };
+
+  postPatch = lib.optionalString (! (pythonOlder "3.4")) ''
+    substituteInPlace setup.py --replace "'enum34>=1.1.6'" ""
+  '';
+
+  propagatedBuildInputs = [ requests2 enum34 ];
+
+  doCheck = false;
+
+  meta = with stdenv.lib; {
+    description = "Bose Soundtouch Python library";
+    homepage    = https://github.com/CharlesBlonde/libsoundtouch;
+    license     = licenses.asl20;
+  };
+}