mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 08:59:32 +03:00
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
|
||||
|
||||
, 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";
|
||||
|
Loading…
Reference in New Issue
Block a user