From 7df9c074470664698f9439cd6ce5c7fdab38828e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sat, 19 Jun 2021 11:44:44 +0200 Subject: [PATCH] pythonPackages.habitipy: init at 0.3.0 --- .../python-modules/habitipy/default.nix | 47 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 49 insertions(+) create mode 100644 pkgs/development/python-modules/habitipy/default.nix diff --git a/pkgs/development/python-modules/habitipy/default.nix b/pkgs/development/python-modules/habitipy/default.nix new file mode 100644 index 000000000000..d20c89e82e79 --- /dev/null +++ b/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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index a6ebffcb8918..9adf1f901297 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -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 { };