pythonPackages.habitipy: init at 0.3.0

This commit is contained in:
Robert Schütz 2021-06-19 11:44:44 +02:00
parent 353c081de2
commit 7df9c07447
2 changed files with 49 additions and 0 deletions

View File

@ -0,0 +1,47 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, plumbum
, requests
, setuptools
, hypothesis
, nose
, responses
}:
buildPythonPackage rec {
pname = "habitipy";
version = "0.3.0";
src = fetchFromGitHub {
owner = "ASMfreaK";
repo = "habitipy";
rev = "v${version}";
sha256 = "1vf485z5m4h61p64zr3sgkcil2s3brq7dja4n7m49d1fvzcirylv";
};
propagatedBuildInputs = [
plumbum
requests
setuptools
];
checkInputs = [
hypothesis
nose
responses
];
checkPhase = ''
HOME=$TMPDIR nosetests
'';
pythonImportsCheck = [ "habitipy" ];
meta = with lib; {
description = "Tools and library for Habitica restful API";
homepage = "https://github.com/ASMfreaK/habitipy";
license = licenses.mit;
maintainers = with maintainers; [ dotlambda ];
};
}

View File

@ -3160,6 +3160,8 @@ in {
habanero = callPackage ../development/python-modules/habanero { };
habitipy = callPackage ../development/python-modules/habitipy { };
hachoir = callPackage ../development/python-modules/hachoir { };
hdate = callPackage ../development/python-modules/hdate { };