python3Packages.libsoundtouch: 0.4.0 -> 0.8.0
This commit is contained in:
parent
f22c637c93
commit
4959e20804
@ -1,30 +1,40 @@
|
|||||||
{ buildPythonPackage
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
, enum-compat
|
||||||
, lib
|
|
||||||
, pythonOlder
|
|
||||||
, requests
|
, requests
|
||||||
, enum34
|
, websocket_client
|
||||||
|
, zeroconf
|
||||||
|
, pytestCheckHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage {
|
buildPythonPackage rec {
|
||||||
pname = "libsoundtouch";
|
pname = "libsoundtouch";
|
||||||
version = "0.4.0";
|
version = "0.8.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "CharlesBlonde";
|
owner = "CharlesBlonde";
|
||||||
repo = "libsoundtouch";
|
repo = "libsoundtouch";
|
||||||
rev = "875074b7a23734021974345b3dc297918e453aa2";
|
rev = version;
|
||||||
sha256 = "1psd556j4x77hjxahxxgdgnq2mcd769whvnf0gmwf3jy2svfkqlg";
|
sha256 = "1wl2w5xfdkrv0qzsz084z2k6sycfyq62mqqgciycha3dywf2fvva";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = lib.optionalString (! (pythonOlder "3.4")) ''
|
propagatedBuildInputs = [
|
||||||
substituteInPlace setup.py --replace "'enum34>=1.1.6'" ""
|
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; {
|
meta = with lib; {
|
||||||
description = "Bose Soundtouch Python library";
|
description = "Bose Soundtouch Python library";
|
||||||
|
Loading…
Reference in New Issue
Block a user