mopidy-local: init at 3.1.1

Mopidy-Local is the successor to Mopidy-Local-SQLite and
Mopidy-Local-Images, which are already packaged. I had to make
gobject-introspection a propagated build input, otherwise
Mopidy-Local can't import Mopidy.
This commit is contained in:
Ruud van Asseldonk 2020-07-18 11:27:37 +02:00
parent 1f378561c6
commit 7565d00a7c
4 changed files with 49 additions and 5 deletions

View File

@ -14,6 +14,8 @@ let
mopidy-gmusic = callPackage ./gmusic.nix { };
mopidy-local = callPackage ./local.nix { };
mopidy-local-images = callPackage ./local-images.nix { };
mopidy-local-sqlite = callPackage ./local-sqlite.nix { };

View File

@ -0,0 +1,30 @@
{ lib
, mopidy
, python3Packages
}:
python3Packages.buildPythonApplication rec {
pname = "Mopidy-Local";
version = "3.1.1";
src = python3Packages.fetchPypi {
inherit pname version;
sha256 = "13m0iz14lyplnpm96gfpisqvv4n89ls30kmkg21z7v238lm0h19j";
};
propagatedBuildInputs = [
mopidy
python3Packages.uritools
];
checkInputs = [
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 ];
};
}

View File

@ -16,13 +16,24 @@ pythonPackages.buildPythonApplication rec {
nativeBuildInputs = [ wrapGAppsHook ];
buildInputs = with gst_all_1; [
gst-plugins-base gst-plugins-good gst-plugins-ugly gst-plugins-bad
glib-networking gobject-introspection
glib-networking
gst-plugins-bad
gst-plugins-base
gst-plugins-good
gst-plugins-ugly
];
propagatedBuildInputs = with pythonPackages; [
gst-python pygobject3 pykka tornado requests setuptools
] ++ stdenv.lib.optional (!stdenv.isDarwin) dbus-python;
propagatedBuildInputs = [
gobject-introspection
] ++ (with pythonPackages; [
gst-python
pygobject3
pykka
requests
setuptools
tornado
] ++ stdenv.lib.optional (!stdenv.isDarwin) dbus-python
);
# There are no tests
doCheck = false;

View File

@ -22122,6 +22122,7 @@ in
mopidy
mopidy-gmusic
mopidy-iris
mopidy-local
mopidy-local-images
mopidy-local-sqlite
mopidy-moped