about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/habitipy/default.nix
blob: 5e01610d69652fe5bb6adc6d1d2fd6e471f6260c (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
43
44
45
46
47
48
{ lib
, buildPythonPackage
, fetchFromGitHub
, plumbum
, requests
, setuptools
, hypothesis
, pynose
, responses
}:

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

  src = fetchFromGitHub {
    owner = "ASMfreaK";
    repo = "habitipy";
    rev = "v${version}";
    sha256 = "1vf485z5m4h61p64zr3sgkcil2s3brq7dja4n7m49d1fvzcirylv";
  };

  propagatedBuildInputs = [
    plumbum
    requests
    setuptools
  ];

  nativeCheckInputs = [
    hypothesis
    pynose
    responses
  ];

  checkPhase = ''
    HOME=$TMPDIR nosetests
  '';

  pythonImportsCheck = [ "habitipy" ];

  meta = with lib; {
    description = "Tools and library for Habitica restful API";
    homepage = "https://github.com/ASMfreaK/habitipy";
    license = licenses.mit;
    maintainers = with maintainers; [ dotlambda ];
  };
}