1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, plumbum
5, requests
6, setuptools
7, hypothesis
8, nose
9, responses
10}:
11
12buildPythonPackage rec {
13 pname = "habitipy";
14 version = "0.3.0";
15
16 src = fetchFromGitHub {
17 owner = "ASMfreaK";
18 repo = "habitipy";
19 rev = "v${version}";
20 sha256 = "1vf485z5m4h61p64zr3sgkcil2s3brq7dja4n7m49d1fvzcirylv";
21 };
22
23 propagatedBuildInputs = [
24 plumbum
25 requests
26 setuptools
27 ];
28
29 checkInputs = [
30 hypothesis
31 nose
32 responses
33 ];
34
35 checkPhase = ''
36 HOME=$TMPDIR nosetests
37 '';
38
39 pythonImportsCheck = [ "habitipy" ];
40
41 meta = with lib; {
42 description = "Tools and library for Habitica restful API";
43 homepage = "https://github.com/ASMfreaK/habitipy";
44 license = licenses.mit;
45 maintainers = with maintainers; [ dotlambda ];
46 };
47}