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