Merge pull request #138612 from fabaff/bump-deezer-python

python3Packages.deezer-python: 2.3.0 -> 2.3.1
This commit is contained in:
Fabian Affolter 2021-09-20 21:59:01 +02:00 committed by GitHub
commit fc875028eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,26 +1,27 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pytest-mock
, pytest-vcr
, pytestCheckHook
, pythonOlder
, requests
, tornado
, poetry-core
, pytestCheckHook
, pytest-cov
, pytest-vcr
}:
buildPythonPackage rec {
pname = "deezer-python";
version = "2.3.0";
disabled = pythonOlder "3.6";
version = "2.3.1";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "browniebroke";
repo = pname;
rev = "v${version}";
sha256 = "sha256-pRYC0kJHJ5SKgDdGS1KkQEbv+DkF9oPw/A1GnB0AwfQ=";
sha256 = "sha256-0gkPwIz+nZJjxfucy71D0A5CFkhQaW32UH5t1DkuvEs=";
};
nativeBuildInputs = [
@ -29,8 +30,8 @@ buildPythonPackage rec {
checkInputs = [
pytestCheckHook
pytest-cov
pytest-vcr
pytest-mock
];
propagatedBuildInputs = [
@ -38,6 +39,13 @@ buildPythonPackage rec {
tornado
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace " --cov=deezer" ""
'';
pythonImportsCheck = [ "deezer" ];
meta = with lib; {
description = "A friendly Python wrapper around the Deezer API";
homepage = "https://github.com/browniebroke/deezer-python";