python3Packages.libsoundtouch: 0.4.0 -> 0.8.0

This commit is contained in:
Martin Weinelt 2021-02-03 01:17:16 +01:00
parent f22c637c93
commit 4959e20804
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -1,30 +1,40 @@
{ buildPythonPackage
{ lib
, buildPythonPackage
, fetchFromGitHub
, lib
, pythonOlder
, enum-compat
, requests
, enum34
, websocket_client
, zeroconf
, pytestCheckHook
}:
buildPythonPackage {
buildPythonPackage rec {
pname = "libsoundtouch";
version = "0.4.0";
version = "0.8.0";
src = fetchFromGitHub {
owner = "CharlesBlonde";
repo = "libsoundtouch";
rev = "875074b7a23734021974345b3dc297918e453aa2";
sha256 = "1psd556j4x77hjxahxxgdgnq2mcd769whvnf0gmwf3jy2svfkqlg";
owner = "CharlesBlonde";
repo = "libsoundtouch";
rev = version;
sha256 = "1wl2w5xfdkrv0qzsz084z2k6sycfyq62mqqgciycha3dywf2fvva";
};
postPatch = lib.optionalString (! (pythonOlder "3.4")) ''
substituteInPlace setup.py --replace "'enum34>=1.1.6'" ""
'';
propagatedBuildInputs = [
requests
enum-compat
websocket_client
zeroconf
];
propagatedBuildInputs = [ requests enum34 ];
checkInputs = [
pytestCheckHook
];
doCheck = false;
disabledTests = [
# mock data order mismatch
"test_select_content_item"
"test_snapshot_restore"
];
meta = with lib; {
description = "Bose Soundtouch Python library";