1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/python-modules/libsoundtouch/default.nix
2017-05-07 13:01:23 +02:00

36 lines
805 B
Nix

{ buildPythonPackage
, fetchFromGitHub
, stdenv
, lib
, pythonOlder
, requests
, 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 = [ requests enum34 ];
doCheck = false;
meta = with stdenv.lib; {
description = "Bose Soundtouch Python library";
homepage = https://github.com/CharlesBlonde/libsoundtouch;
license = licenses.asl20;
};
}