fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
50 lines
887 B
Nix
50 lines
887 B
Nix
{
|
|
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 ];
|
|
};
|
|
}
|