nixpkgs/pkgs/development/python-modules/sonarr/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

42 lines
770 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, aiohttp
, yarl
, aresponses
, pytest-asyncio
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "sonarr";
version = "0.3.0";
src = fetchFromGitHub {
owner = "ctalkington";
repo = "python-sonarr";
rev = version;
sha256 = "0gi34951qhzzrq59hj93mnkid8cvvknlamkhir6ya9mb23fr7bya";
};
propagatedBuildInputs = [
aiohttp
yarl
];
nativeCheckInputs = [
aresponses
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [ "sonarr" ];
meta = with lib; {
description = "Asynchronous Python client for the Sonarr API";
homepage = "https://github.com/ctalkington/python-sonarr";
license = licenses.mit;
maintainers = with maintainers; [ dotlambda ];
};
}