1{ lib 2, buildPythonPackage 3, environs 4, fetchFromGitHub 5, poetry-core 6, pytest-mock 7, pytest-vcr 8, pytestCheckHook 9, pythonOlder 10, requests 11, tornado 12}: 13 14buildPythonPackage rec { 15 pname = "deezer-python"; 16 version = "4.1.0"; 17 format = "pyproject"; 18 19 disabled = pythonOlder "3.6"; 20 21 src = fetchFromGitHub { 22 owner = "browniebroke"; 23 repo = pname; 24 rev = "v${version}"; 25 sha256 = "sha256-E1xXtvAcYIi2xxaX+3yMkkvRz+Gt6Nx0JRqV1nI/Ldo="; 26 }; 27 28 nativeBuildInputs = [ 29 poetry-core 30 ]; 31 32 checkInputs = [ 33 environs 34 pytest-mock 35 pytest-vcr 36 pytestCheckHook 37 ]; 38 39 propagatedBuildInputs = [ 40 requests 41 tornado 42 ]; 43 44 postPatch = '' 45 substituteInPlace pyproject.toml \ 46 --replace " --cov=deezer" "" 47 ''; 48 49 pythonImportsCheck = [ "deezer" ]; 50 51 meta = with lib; { 52 description = "Python wrapper around the Deezer API"; 53 homepage = "https://github.com/browniebroke/deezer-python"; 54 license = licenses.mit; 55 maintainers = with maintainers; [ synthetica ]; 56 }; 57}