mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-08 07:04:09 +01:00
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
55 lines
1.1 KiB
Nix
55 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
environs,
|
|
fetchFromGitHub,
|
|
httpx,
|
|
setuptools,
|
|
pytest-cov-stub,
|
|
pytest-mock,
|
|
pytest-vcr,
|
|
pytestCheckHook,
|
|
tornado,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "deezer-python";
|
|
version = "7.2.0";
|
|
pyproject = true;
|
|
|
|
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 ];
|
|
};
|
|
}
|