depot/third_party/nixpkgs/pkgs/development/python-modules/deezer-python/default.nix
Default email 3e7541c14f Project import generated by Copybara.
GitOrigin-RevId: ff377a78794d412a35245e05428c8f95fef3951f
2022-01-07 12:07:37 +08:00

57 lines
1,016 B
Nix

{ lib
, buildPythonPackage
, environs
, fetchFromGitHub
, poetry-core
, pytest-mock
, pytest-vcr
, pytestCheckHook
, pythonOlder
, requests
, tornado
}:
buildPythonPackage rec {
pname = "deezer-python";
version = "4.3.0";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "browniebroke";
repo = pname;
rev = "v${version}";
sha256 = "17l11mhv1qkdbhmwwal3zfgr1a3w1c4bwm9lqi78gadpl5lli4i2";
};
nativeBuildInputs = [
poetry-core
];
checkInputs = [
environs
pytest-mock
pytest-vcr
pytestCheckHook
];
propagatedBuildInputs = [
requests
tornado
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace " --cov=deezer" ""
'';
pythonImportsCheck = [ "deezer" ];
meta = with lib; {
description = "Python wrapper around the Deezer API";
homepage = "https://github.com/browniebroke/deezer-python";
license = licenses.mit;
maintainers = with maintainers; [ synthetica ];
};
}