mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-16 01:45:11 +00:00
59 lines
1.1 KiB
Nix
59 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
environs,
|
|
fetchFromGitHub,
|
|
httpx,
|
|
poetry-core,
|
|
pytest-cov-stub,
|
|
pytest-mock,
|
|
pytest-vcr,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
tornado,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "deezer-python";
|
|
version = "7.1.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "browniebroke";
|
|
repo = "deezer-python";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-d+cN6f6jw8D+noxyYl/TpDAkeTb8Krt+r0/Ai65cvdU=";
|
|
};
|
|
|
|
build-system = [ poetry-core ];
|
|
|
|
dependencies = [ httpx ];
|
|
|
|
nativeCheckInputs = [
|
|
environs
|
|
pytest-cov-stub
|
|
pytest-mock
|
|
pytest-vcr
|
|
pytestCheckHook
|
|
tornado
|
|
];
|
|
|
|
pythonImportsCheck = [ "deezer" ];
|
|
|
|
disabledTests = [
|
|
# JSONDecodeError issue
|
|
"test_get_user_flow"
|
|
"test_with_language_header"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python wrapper around the Deezer API";
|
|
homepage = "https://github.com/browniebroke/deezer-python";
|
|
changelog = "https://github.com/browniebroke/deezer-python/releases/tag/v${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ synthetica ];
|
|
};
|
|
}
|