summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/rtmapi/default.nix
blob: 17bc6465fadd8c1a7c848e3fab56dadbb10b77ff (plain)
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
43
44
45
{
  lib,
  buildPythonPackage,
  fetchFromBitbucket,
  setuptools,
  httplib2,
}:

buildPythonPackage rec {
  pname = "rtmapi";
  version = "0.7.2";
  pyproject = true;

  src = fetchFromBitbucket {
    owner = "rtmapi";
    repo = "rtmapi";
    rev = "release-${version}";
    hash = "sha256-+aJ7T5bE+N9bINf6S3v48wUGXQ/ikz1Xb15xWbConT4=";
  };

  build-system = [
    setuptools
  ];

  dependencies = [
    httplib2
  ];

  postPatch = ''
    substituteInPlace setup.py \
      --replace-fail "use_2to3=True," ""
  '';

  # package has no tests
  doCheck = false;

  pythonImportsCheck = [ "rtmapi" ];

  meta = {
    description = "API package for rememberthemilk.com";
    homepage = "https://bitbucket.org/rtmapi/rtmapi";
    license = lib.licenses.mit;
    maintainers = [ lib.maintainers.jamiemagee ];
  };
}