treewide: applications/audio: use top-level fetchPypi

This commit is contained in:
Weijia Wang 2023-05-25 14:49:37 +03:00
parent 71b17dd143
commit 8019be263e
19 changed files with 40 additions and 37 deletions

View File

@ -1,10 +1,10 @@
{ python3Packages, lib, flac, lame, opusTools, vorbis-tools, ffmpeg }:
{ python3Packages, fetchPypi, lib, flac, lame, opusTools, vorbis-tools, ffmpeg }:
python3Packages.buildPythonApplication rec {
pname = "flac2all";
version = "5.1";
src = python3Packages.fetchPypi {
src = fetchPypi {
inherit pname version;
sha256 = "OBjlr7cbSx2WOIfZUNwHy5Hpb2Fmh3vmZdc70JiWsiI=";
};

View File

@ -1,5 +1,6 @@
{ lib
, python3
, fetchPypi
}:
python3.pkgs.buildPythonPackage rec {
@ -7,7 +8,7 @@ python3.pkgs.buildPythonPackage rec {
version = "2.0.67";
format = "setuptools";
src = python3.pkgs.fetchPypi {
src = fetchPypi {
inherit pname version;
hash = "sha256-lFxAMjglQZXCySr83PtvStU6hw2ucQu+rSjIHo1yZBk=";
};

View File

@ -1,9 +1,9 @@
{ lib, python3Packages, mopidy }:
{ lib, python3Packages, fetchPypi, mopidy }:
python3Packages.buildPythonApplication rec {
pname = "Mopidy-Bandcamp";
version = "1.1.5";
src = python3Packages.fetchPypi {
src = fetchPypi {
inherit pname version;
sha256 = "sha256-wg9zcOKfZQRhpyA1Cu5wvdwKpmrlcr2m9mrqBHgUXAQ=";
};

View File

@ -1,10 +1,10 @@
{ lib, python3Packages, mopidy }:
{ lib, python3Packages, fetchPypi, mopidy }:
python3Packages.buildPythonApplication rec {
pname = "Mopidy-Iris";
version = "3.64.0";
src = python3Packages.fetchPypi {
src = fetchPypi {
inherit pname version;
sha256 = "062x73glhn1x4wgc7zmb9y3cq15d5grgqf5drdpbp6p3cgk4s2vc";
};

View File

@ -1,10 +1,10 @@
{ lib, python3Packages, mopidy }:
{ lib, python3Packages, fetchPypi, mopidy }:
python3Packages.buildPythonApplication rec {
pname = "mopidy-jellyfin";
version = "1.0.4";
src = python3Packages.fetchPypi {
src = fetchPypi {
inherit version;
pname = "Mopidy-Jellyfin";
sha256 = "ny0u6HdOlZCsmIzZuQ1rql+bvHU3xkh8IdwhJVHNH9c=";

View File

@ -1,7 +1,7 @@
{ stdenv
, lib
{ lib
, mopidy
, python3Packages
, fetchPypi
, fetchpatch
}:
@ -9,7 +9,7 @@ python3Packages.buildPythonApplication rec {
pname = "Mopidy-Local";
version = "3.2.1";
src = python3Packages.fetchPypi {
src = fetchPypi {
inherit pname version;
sha256 = "18w39mxpv8p17whd6zfw5653d21q138f8xd6ili6ks2g2dbm25i9";
};

View File

@ -1,10 +1,10 @@
{ lib, pythonPackages, mopidy, glibcLocales }:
{ lib, pythonPackages, fetchPypi, mopidy, glibcLocales }:
pythonPackages.buildPythonApplication rec {
pname = "Mopidy-Moped";
version = "0.7.1";
src = pythonPackages.fetchPypi {
src = fetchPypi {
inherit pname version;
sha256 = "15461174037d87af93dd59a236d4275c5abf71cea0670ffff24a7d0399a8a2e4";
};

View File

@ -1,10 +1,10 @@
{ lib, pythonPackages, mopidy }:
{ lib, pythonPackages, fetchPypi, mopidy }:
pythonPackages.buildPythonApplication rec {
pname = "Mopidy-Mopify";
version = "1.6.1";
src = pythonPackages.fetchPypi {
src = fetchPypi {
inherit pname version;
sha256 = "93ad2b3d38b1450c8f2698bb908b0b077a96b3f64cdd6486519e518132e23a5c";
};

View File

@ -1,10 +1,10 @@
{ lib, python3Packages, mopidy }:
{ lib, python3Packages, fetchPypi, mopidy }:
python3Packages.buildPythonApplication rec {
pname = "Mopidy-MPD";
version = "3.3.0";
src = python3Packages.fetchPypi {
src = fetchPypi {
inherit pname version;
sha256 = "sha256-CeLMRqj9cwBvQrOx7XHVV8MjDjwOosONVlsN2o+vTVM=";
};

View File

@ -1,10 +1,10 @@
{ lib, python3Packages, mopidy }:
{ lib, python3Packages, fetchPypi, mopidy }:
python3Packages.buildPythonApplication rec {
pname = "mopidy-mpris";
version = "3.0.3";
src = python3Packages.fetchPypi {
src = fetchPypi {
inherit version;
pname = "Mopidy-MPRIS";
sha256 = "sha256-rHQgNIyludTEL7RDC8dIpyGTMOt1Tazn6i/orKlSP4U=";

View File

@ -1,10 +1,10 @@
{ lib, pythonPackages, mopidy }:
{ lib, pythonPackages, fetchPypi, mopidy }:
pythonPackages.buildPythonApplication rec {
pname = "mopidy-muse";
version = "0.0.27";
src = pythonPackages.fetchPypi {
src = fetchPypi {
inherit version;
pname = "Mopidy-Muse";
sha256 = "0jx9dkgxr07avzz9zskzhqy98zsxkdrf7iid2ax5vygwf8qsx8ks";

View File

@ -1,10 +1,10 @@
{ lib, pythonPackages, mopidy }:
{ lib, fetchPypi, pythonPackages, mopidy }:
pythonPackages.buildPythonApplication rec {
pname = "Mopidy-Notify";
version = "0.2.0";
src = pythonPackages.fetchPypi {
src = fetchPypi {
inherit pname version;
sha256 = "sha256-lzZupjlS0kbNvsn18serOoMfu0sRb0nRwpowvOPvt/g=";
};

View File

@ -1,10 +1,10 @@
{ lib, python3Packages, mopidy }:
{ lib, python3Packages, fetchPypi, mopidy }:
python3Packages.buildPythonApplication rec {
pname = "mopidy-podcast";
version = "3.0.0";
src = python3Packages.fetchPypi {
src = fetchPypi {
inherit version;
pname = "Mopidy-Podcast";
sha256 = "1z2b523yvdpcf8p7m7kczrvaw045lmxzhq4qj00dflxa2yw61qxr";

View File

@ -1,10 +1,10 @@
{ lib, python3Packages, mopidy }:
{ lib, python3Packages, fetchPypi, mopidy }:
python3Packages.buildPythonApplication rec {
pname = "Mopidy-Scrobbler";
version = "2.0.1";
src = python3Packages.fetchPypi {
src = fetchPypi {
inherit pname version;
sha256 = "11vxgax4xgkggnq4fr1rh2rcvzspkkimck5p3h4phdj3qpnj0680";
};

View File

@ -1,10 +1,10 @@
{ lib, python3Packages, mopidy }:
{ lib, python3Packages, fetchPypi, mopidy }:
python3Packages.buildPythonApplication rec {
pname = "mopidy-somafm";
version = "2.0.2";
src = python3Packages.fetchPypi {
src = fetchPypi {
inherit version;
pname = "Mopidy-SomaFM";
sha256 = "DC0emxkoWfjGHih2C8nINBFByf521Xf+3Ks4JRxNPLM=";

View File

@ -1,5 +1,6 @@
{ lib
, python3Packages
, fetchPypi
, mopidy
}:
@ -7,7 +8,7 @@ python3Packages.buildPythonApplication rec {
pname = "Mopidy-Tidal";
version = "0.3.2";
src = python3Packages.fetchPypi {
src = fetchPypi {
inherit pname version;
hash = "sha256-ekqhzKyU2WqTOeRR1ZSZA9yW3UXsLBsC2Bk6FZrQgmc=";
};

View File

@ -1,10 +1,10 @@
{ lib, python3Packages, mopidy }:
{ lib, python3Packages, fetchPypi, mopidy }:
python3Packages.buildPythonApplication rec {
pname = "mopidy-tunein";
version = "1.1.0";
src = python3Packages.fetchPypi {
src = fetchPypi {
inherit version;
pname = "Mopidy-TuneIn";
sha256 = "01y1asylscr73yqx071imhrzfzlg07wmqqzkdvpgm6r35marc2li";

View File

@ -1,5 +1,6 @@
{ lib
, python3
, fetchPypi
, mopidy
}:
@ -8,7 +9,7 @@ let
packageOverrides = self: super: {
ytmusicapi = super.ytmusicapi.overridePythonAttrs (old: rec {
version = "0.25.1";
src = self.fetchPypi {
src = fetchPypi {
inherit (old) pname;
inherit version;
hash = "sha256-uc/fgDetSYaCRzff0SzfbRhs3TaKrfE2h6roWkkj8yQ=";
@ -20,7 +21,7 @@ in python.pkgs.buildPythonApplication rec {
pname = "mopidy-ytmusic";
version = "0.3.8";
src = python.pkgs.fetchPypi {
src = fetchPypi {
inherit version;
pname = "mopidy_ytmusic";
sha256 = "6b4d8ff9c477dbdd30d0259a009494ebe104cad3f8b37241ae503e5bce4ec2e8";

View File

@ -1,9 +1,9 @@
{ lib, python3Packages, dbus }:
{ lib, python3Packages, fetchPypi, dbus }:
python3Packages.buildPythonApplication rec {
pname = "spotify-cli-linux";
version = "1.6.0";
src = python3Packages.fetchPypi {
src = fetchPypi {
inherit pname version;
sha256 = "0slyc3jfrj3rwq8rv6p5aqkw487aw7a87kmf1fb6n4vnvcf08v7w";
};