Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ buildPythonPackage 2, fetchFromGitHub 3, stdenv 4, lib 5, pythonOlder 6, requests 7, enum34 8}: 9 10buildPythonPackage { 11 pname = "libsoundtouch"; 12 version = "0.4.0"; 13 14 src = fetchFromGitHub { 15 owner = "CharlesBlonde"; 16 repo = "libsoundtouch"; 17 rev = "875074b7a23734021974345b3dc297918e453aa2"; 18 sha256 = "1psd556j4x77hjxahxxgdgnq2mcd769whvnf0gmwf3jy2svfkqlg"; 19 }; 20 21 postPatch = lib.optionalString (! (pythonOlder "3.4")) '' 22 substituteInPlace setup.py --replace "'enum34>=1.1.6'" "" 23 ''; 24 25 propagatedBuildInputs = [ requests enum34 ]; 26 27 doCheck = false; 28 29 meta = with stdenv.lib; { 30 description = "Bose Soundtouch Python library"; 31 homepage = "https://github.com/CharlesBlonde/libsoundtouch"; 32 license = licenses.asl20; 33 }; 34}