2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
2020-10-19 00:13:06 +00:00
|
|
|
, mopidy
|
|
|
|
, python3Packages
|
2023-07-15 17:15:38 +00:00
|
|
|
, fetchPypi
|
2022-12-17 10:02:37 +00:00
|
|
|
, fetchpatch
|
2020-10-19 00:13:06 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "Mopidy-Local";
|
2021-03-09 03:18:52 +00:00
|
|
|
version = "3.2.1";
|
2020-10-19 00:13:06 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
src = fetchPypi {
|
2020-10-19 00:13:06 +00:00
|
|
|
inherit pname version;
|
2021-03-09 03:18:52 +00:00
|
|
|
sha256 = "18w39mxpv8p17whd6zfw5653d21q138f8xd6ili6ks2g2dbm25i9";
|
2020-10-19 00:13:06 +00:00
|
|
|
};
|
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
patches = [
|
|
|
|
# Fix tests with newer Mopidy versions >=3.4.0 -- mopidy/mopidy-local#69
|
|
|
|
(fetchpatch {
|
|
|
|
name = "update-tests-for-mopidy-3.4.0.patch";
|
|
|
|
url = "https://github.com/mopidy/mopidy-local/commit/f2c198f8eb253f62100afc58f652e73a76d5a090.patch";
|
|
|
|
hash = "sha256-jrlZc/pd00S5q9nOfV1OXu+uP/SvH+Xbi7U52aZajj4=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2020-10-19 00:13:06 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
mopidy
|
|
|
|
python3Packages.uritools
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2020-10-19 00:13:06 +00:00
|
|
|
python3Packages.pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/mopidy/mopidy-local";
|
|
|
|
description = "Mopidy extension for playing music from your local music archive";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ ruuda ];
|
|
|
|
};
|
|
|
|
}
|