blob: 5ec42c4df5e4aeac6893d120af7e1c390a783632 (
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
49
|
{ 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";
mainProgram = "habitipy";
homepage = "https://github.com/ASMfreaK/habitipy";
license = licenses.mit;
maintainers = with maintainers; [ dotlambda ];
};
}
|