1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 plumbum,
6 requests,
7 setuptools,
8 hypothesis,
9 pytestCheckHook,
10 responses,
11}:
12
13buildPythonPackage rec {
14 pname = "habitipy";
15 version = "0.3.3";
16 pyproject = true;
17
18 src = fetchFromGitHub {
19 owner = "ASMfreaK";
20 repo = "habitipy";
21 tag = "v${version}";
22 hash = "sha256-AEeTCrxLXkokRRnNUfW4y23Qdh8ek1F88GmCPLGb84A=";
23 };
24
25 build-system = [ setuptools ];
26
27 dependencies = [
28 plumbum
29 requests
30 setuptools
31 ];
32
33 nativeCheckInputs = [
34 hypothesis
35 pytestCheckHook
36 responses
37 ];
38
39 preCheck = ''
40 export HOME=$TMPDIR
41 '';
42
43 disabledTests = [
44 # network access
45 "test_content_cache"
46 # hypothesis.errors.InvalidArgument: tests/test_cli.py::test_data is a function that returns a Hypothesis strategy, but pytest has collected it as a test function.
47 "test_data"
48 ];
49
50 pythonImportsCheck = [ "habitipy" ];
51
52 meta = with lib; {
53 description = "Tools and library for Habitica restful API";
54 mainProgram = "habitipy";
55 homepage = "https://github.com/ASMfreaK/habitipy";
56 license = licenses.mit;
57 maintainers = with maintainers; [ dotlambda ];
58 };
59}