Files
nixpkgs/pkgs/development/python-modules/deezer-python/default.nix
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
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>
2025-12-10 18:09:49 +01:00

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 ];
};
}