2021-06-28 23:13:55 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, plumbum
|
|
|
|
, requests
|
|
|
|
, setuptools
|
|
|
|
, hypothesis
|
2024-04-21 15:54:59 +00:00
|
|
|
, pynose
|
2021-06-28 23:13:55 +00:00
|
|
|
, responses
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "habitipy";
|
|
|
|
version = "0.3.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ASMfreaK";
|
|
|
|
repo = "habitipy";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1vf485z5m4h61p64zr3sgkcil2s3brq7dja4n7m49d1fvzcirylv";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
plumbum
|
|
|
|
requests
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-06-28 23:13:55 +00:00
|
|
|
hypothesis
|
2024-04-21 15:54:59 +00:00
|
|
|
pynose
|
2021-06-28 23:13:55 +00:00
|
|
|
responses
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
HOME=$TMPDIR nosetests
|
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "habitipy" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Tools and library for Habitica restful API";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "habitipy";
|
2021-06-28 23:13:55 +00:00
|
|
|
homepage = "https://github.com/ASMfreaK/habitipy";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|