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 = "5.7.0"; 17 format = "pyproject"; 18 19 disabled = pythonOlder "3.7"; 20 21 src = fetchFromGitHub { 22 owner = "browniebroke"; 23 repo = pname; 24 rev = "refs/tags/v${version}"; 25 hash = "sha256-E4XNHrAq49F1EHG1mMOJrlsCG9W2KY8swijxHRO9MCc="; 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 = [ 50 "deezer" 51 ]; 52 53 meta = with lib; { 54 description = "Python wrapper around the Deezer API"; 55 homepage = "https://github.com/browniebroke/deezer-python"; 56 license = licenses.mit; 57 maintainers = with maintainers; [ synthetica ]; 58 }; 59}