about summary refs log tree commit diff
path: root/pkgs/development/python-modules/agent-py/default.nix
blob: 7107829b8f6a0eca67a5d5a2bac6259944a5abb4 (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
{
  aiohttp,
  buildPythonPackage,
  fetchPypi,
  isPy3k,
  lib,
  python,
  requests,
}:

buildPythonPackage rec {
  pname = "agent-py";
  version = "0.0.23";
  format = "setuptools";

  disabled = !isPy3k;

  src = fetchPypi {
    inherit pname version;
    sha256 = "1hx88m8b8kfb2gm6hii5ldjv7hlvqf99cz0w2vj0d0grrxcbn5cz";
  };

  propagatedBuildInputs = [
    requests
    aiohttp
  ];

  checkPhase = ''
    ${python.interpreter} tests/test_agent.py
  '';

  meta = with lib; {
    description = "A python wrapper around the Agent REST API";
    homepage = "https://github.com/ispysoftware/agent-py";
    license = licenses.asl20;
    maintainers = with maintainers; [ jamiemagee ];
  };
}