2020-07-18 10:27:37 +01:00
|
|
|
{ lib
|
|
|
|
, mopidy
|
|
|
|
, python3Packages
|
2021-01-06 22:46:45 +00:00
|
|
|
, fetchpatch
|
2020-07-18 10:27:37 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "Mopidy-Local";
|
2020-12-16 17:21:59 +00:00
|
|
|
version = "3.2.0";
|
2020-07-18 10:27:37 +01:00
|
|
|
|
|
|
|
src = python3Packages.fetchPypi {
|
|
|
|
inherit pname version;
|
2020-12-16 17:21:59 +00:00
|
|
|
sha256 = "14f78sb3wkg83dg3xcqlq77dh059zzcwry5l9ilyhnmvmyrkhqx0";
|
2020-07-18 10:27:37 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
mopidy
|
|
|
|
python3Packages.uritools
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
python3Packages.pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2021-01-06 22:46:45 +00:00
|
|
|
patches = [
|
|
|
|
# Fix tests for Mopidy≥3.1.0. Remove with the next release.
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/mopidy/mopidy-local/commit/f1d7598d3a9587f0823acb97ecb615f4f4817fd2.patch";
|
|
|
|
sha256 = "193kd5zwsr0qpp2y8icdy13vqpglmjdm7x1rw5hliwyq18a34vjp";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2020-07-18 10:27:37 +01:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|