about summary refs log tree commit diff
path: root/pkgs/development/python-modules/sonarr/default.nix
blob: 0d2fe50b3976269ecab6274249bc0b6c8f913669 (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
42
{ lib
, buildPythonPackage
, fetchFromGitHub
, aiohttp
, yarl
, aresponses
, pytest-asyncio
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "sonarr";
  version = "0.3.0";
  format = "setuptools";

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