about summary refs log tree commit diff
path: root/pkgs/development/python-modules/sonarr/default.nix
blob: 9f73522def4d7ad37be09712fea7bd20ea4b6c7c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{ 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
  ];

  checkInputs = [
    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 ];
  };
}