Merge pull request #127455 from dotlambda/habitipy-init
This commit is contained in:
@@ -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 ];
|
||||
};
|
||||
}
|
||||
@@ -335,7 +335,7 @@
|
||||
"gstreamer" = ps: with ps; [ ]; # missing inputs: gstreamer-player
|
||||
"gtfs" = ps: with ps; [ pygtfs ];
|
||||
"guardian" = ps: with ps; [ aioguardian ];
|
||||
"habitica" = ps: with ps; [ ]; # missing inputs: habitipy
|
||||
"habitica" = ps: with ps; [ habitipy ];
|
||||
"hangouts" = ps: with ps; [ ]; # missing inputs: hangups
|
||||
"harman_kardon_avr" = ps: with ps; [ ]; # missing inputs: hkavr
|
||||
"harmony" = ps: with ps; [ aioharmony ];
|
||||
|
||||
@@ -435,6 +435,7 @@ in with py.pkgs; buildPythonApplication rec {
|
||||
"group"
|
||||
"growatt_server"
|
||||
"guardian"
|
||||
"habitica"
|
||||
"harmony"
|
||||
"hassio"
|
||||
"hddtemp"
|
||||
|
||||
@@ -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 { };
|
||||
|
||||
Reference in New Issue
Block a user