2021-04-23 04:20:22 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pythonOlder
|
|
|
|
, requests
|
|
|
|
, tornado
|
|
|
|
, poetry-core
|
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-cov
|
|
|
|
, pytest-vcr
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "deezer-python";
|
2021-07-02 21:05:45 +02:00
|
|
|
version = "2.3.0";
|
2021-04-23 04:20:22 +02:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "browniebroke";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-07-02 21:05:45 +02:00
|
|
|
sha256 = "sha256-pRYC0kJHJ5SKgDdGS1KkQEbv+DkF9oPw/A1GnB0AwfQ=";
|
2021-04-23 04:20:22 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
pytest-cov
|
|
|
|
pytest-vcr
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
tornado
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A friendly Python wrapper around the Deezer API";
|
|
|
|
homepage = "https://github.com/browniebroke/deezer-python";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ synthetica ];
|
|
|
|
};
|
|
|
|
}
|