diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/habitipy/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/habitipy/default.nix | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/habitipy/default.nix b/nixpkgs/pkgs/development/python-modules/habitipy/default.nix new file mode 100644 index 000000000000..d20c89e82e79 --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/habitipy/default.nix @@ -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 ]; + }; +} |