3cbfd2b52c
GitOrigin-RevId: 395879c28386e1abf20c7ecacd45880759548391
57 lines
1,016 B
Nix
57 lines
1,016 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, environs
|
|
, fetchFromGitHub
|
|
, poetry-core
|
|
, pytest-mock
|
|
, pytest-vcr
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, requests
|
|
, tornado
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "deezer-python";
|
|
version = "4.2.1";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "browniebroke";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "0gl0l7x9zqfkz3l4jfz8rb956lqj3vx1aghric36izwzl6wyj6h5";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
checkInputs = [
|
|
environs
|
|
pytest-mock
|
|
pytest-vcr
|
|
pytestCheckHook
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
requests
|
|
tornado
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace pyproject.toml \
|
|
--replace " --cov=deezer" ""
|
|
'';
|
|
|
|
pythonImportsCheck = [ "deezer" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python wrapper around the Deezer API";
|
|
homepage = "https://github.com/browniebroke/deezer-python";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ synthetica ];
|
|
};
|
|
}
|