2021-04-23 04:20:22 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
2021-10-17 12:30:14 +02:00
|
|
|
environs,
|
2021-04-23 04:20:22 +02:00
|
|
|
fetchFromGitHub,
|
2024-08-03 20:17:44 +02:00
|
|
|
httpx,
|
2024-12-25 23:03:44 +01:00
|
|
|
setuptools,
|
2024-11-01 08:40:54 +01:00
|
|
|
pytest-cov-stub,
|
2021-09-20 09:20:07 +02:00
|
|
|
pytest-mock,
|
|
|
|
pytest-vcr,
|
|
|
|
pytestCheckHook,
|
2021-04-23 04:20:22 +02:00
|
|
|
pythonOlder,
|
|
|
|
tornado,
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "deezer-python";
|
2024-12-25 23:03:44 +01:00
|
|
|
version = "7.1.1";
|
2023-12-16 15:00:58 +01:00
|
|
|
pyproject = true;
|
2021-04-23 04:20:22 +02:00
|
|
|
|
2024-11-01 08:40:54 +01:00
|
|
|
disabled = pythonOlder "3.9";
|
2021-09-20 09:20:07 +02:00
|
|
|
|
2021-04-23 04:20:22 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "browniebroke";
|
2023-12-16 15:00:58 +01:00
|
|
|
repo = "deezer-python";
|
2025-01-03 21:24:13 +01:00
|
|
|
tag = "v${version}";
|
2024-12-25 23:03:44 +01:00
|
|
|
hash = "sha256-3TYgOa8NWGhkVIT5HkDdpHGyj7FzP8n02a36KHW6IC4=";
|
2021-04-23 04:20:22 +02:00
|
|
|
};
|
|
|
|
|
2024-12-25 23:03:44 +01:00
|
|
|
build-system = [ setuptools ];
|
2024-05-24 10:48:07 +02:00
|
|
|
|
2024-11-02 14:10:20 +01:00
|
|
|
dependencies = [ httpx ];
|
2021-04-23 04:20:22 +02:00
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2021-10-17 12:30:14 +02:00
|
|
|
environs
|
2024-11-01 08:40:54 +01:00
|
|
|
pytest-cov-stub
|
2021-09-20 09:20:07 +02:00
|
|
|
pytest-mock
|
2021-10-17 12:30:14 +02:00
|
|
|
pytest-vcr
|
|
|
|
pytestCheckHook
|
2024-11-02 14:10:20 +01:00
|
|
|
tornado
|
2021-04-23 04:20:22 +02:00
|
|
|
];
|
|
|
|
|
2022-06-07 18:43:17 +02:00
|
|
|
pythonImportsCheck = [ "deezer" ];
|
2021-09-20 09:20:07 +02:00
|
|
|
|
2023-12-16 15:00:58 +01:00
|
|
|
disabledTests = [
|
|
|
|
# JSONDecodeError issue
|
|
|
|
"test_get_user_flow"
|
|
|
|
"test_with_language_header"
|
|
|
|
];
|
|
|
|
|
2021-04-23 04:20:22 +02:00
|
|
|
meta = with lib; {
|
2021-10-17 12:30:14 +02:00
|
|
|
description = "Python wrapper around the Deezer API";
|
2021-04-23 04:20:22 +02:00
|
|
|
homepage = "https://github.com/browniebroke/deezer-python";
|
2022-11-22 18:42:53 +01:00
|
|
|
changelog = "https://github.com/browniebroke/deezer-python/releases/tag/v${version}";
|
2021-04-23 04:20:22 +02:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ synthetica ];
|
|
|
|
};
|
|
|
|
}
|