deemix: init at 2.0.16

deezer-py: init at 0.0.15
This commit is contained in:
Simon Bruder 2021-05-13 08:59:01 +02:00
parent 483e5d94e4
commit 9356154fb1
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC
3 changed files with 83 additions and 0 deletions

41
deemix/default.nix Normal file
View file

@ -0,0 +1,41 @@
{ lib
, buildPythonPackage
, fetchPypi
, click
, deezer-py
, eventlet
, mutagen
, pycryptodomex
, requests
, spotipy
}:
buildPythonPackage rec {
pname = "deemix";
version = "2.0.16";
src = fetchPypi {
inherit pname version;
sha256 = "0q5nzx540a2xk2gw225yjrjn2py4b7naim6kk7li97gwarp9r0h9";
};
propagatedBuildInputs = [
click
deezer-py
eventlet
mutagen
pycryptodomex
requests
spotipy
];
doCheck = false; # error: protocol not found
meta = with lib; {
description = "A python library that lets you download millions of songs, soundtracks, albums in high-quality mp3 and FLAC";
homepage = "https://download.deemix.app/";
license = licenses.lgpl3Plus;
maintainers = with maintainers; [ sbruder ];
platforms = platforms.all;
};
}

View file

@ -16,6 +16,16 @@
callPythonPackage = prev.python3Packages.callPackage; callPythonPackage = prev.python3Packages.callPackage;
in in
{ {
python3 = prev.python3.override {
packageOverrides = final: prev:
{
deezer-py = callPythonPackage ./python-modules/deezer-py { };
};
};
python3Packages = prev.recurseIntoAttrs final.python3.pkgs;
deemix = callPythonPackage ./deemix { };
VisiCut = callPackage ./VisiCut { }; VisiCut = callPackage ./VisiCut { };
}; };
} // flake-utils.lib.eachDefaultSystem (system: } // flake-utils.lib.eachDefaultSystem (system:
@ -41,6 +51,7 @@
(n: v: lib.elem system v.meta.platforms) (n: v: lib.elem system v.meta.platforms)
{ {
inherit (pkgs) inherit (pkgs)
deemix
VisiCut; VisiCut;
}; };

View file

@ -0,0 +1,31 @@
{ lib
, buildPythonPackage
, fetchPypi
, requests
, eventlet
}:
buildPythonPackage rec {
pname = "deezer-py";
version = "0.0.15";
src = fetchPypi {
inherit pname version;
sha256 = "0sg4r8f11b11ygb5ra7gwsnxjhkzwhaniii0v69kqcypkxncc3ys";
};
propagatedBuildInputs = [
requests
eventlet
];
doCheck = false; # OSError: protocol not found
meta = with lib; {
description = "A python wrapper for all Deezers APIs";
homepage = "https://gitlab.com/RemixDev/deezer-py";
license = licenses.lgpl3Plus;
maintainers = with maintainers; [ sbruder ];
platforms = platforms.all;
};
}