mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-14 20:10:25 +08:00
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
59 lines
1.1 KiB
Nix
59 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
environs,
|
|
fetchFromGitHub,
|
|
httpx,
|
|
setuptools,
|
|
pytest-cov-stub,
|
|
pytest-mock,
|
|
pytest-vcr,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
tornado,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "deezer-python";
|
|
version = "7.2.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "browniebroke";
|
|
repo = "deezer-python";
|
|
tag = "v${version}";
|
|
hash = "sha256-j7FiZJX2YIYs03bKKu2e+ByElp5oYpmpUheVr8BVXZo=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
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 = {
|
|
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 = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ synthetica ];
|
|
};
|
|
}
|