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