summary refs log tree commit diff
path: root/pkgs/development/python-modules/myfitnesspal/default.nix
diff options
context:
space:
mode:
authorAndreas Rammhold <andreas@rammhold.de>2020-10-28 03:00:32 +0100
committerAndreas Rammhold <andreas@rammhold.de>2020-10-28 03:03:27 +0100
commitdb0fe5c3eb1d680fb8c635f8e327c412528eba90 (patch)
treeeb73686ee894bbc2d528824803dacf5bc914f28f /pkgs/development/python-modules/myfitnesspal/default.nix
parent5d03fe6ac4b2e5e4132bb6f893380544ae2cf008 (diff)
parentc127653b72574199463a73a56e1809223eaec0df (diff)
downloadnixpkgs-db0fe5c3eb1d680fb8c635f8e327c412528eba90.tar
nixpkgs-db0fe5c3eb1d680fb8c635f8e327c412528eba90.tar.gz
nixpkgs-db0fe5c3eb1d680fb8c635f8e327c412528eba90.tar.bz2
nixpkgs-db0fe5c3eb1d680fb8c635f8e327c412528eba90.tar.lz
nixpkgs-db0fe5c3eb1d680fb8c635f8e327c412528eba90.tar.xz
nixpkgs-db0fe5c3eb1d680fb8c635f8e327c412528eba90.tar.zst
nixpkgs-db0fe5c3eb1d680fb8c635f8e327c412528eba90.zip
Merge branch master into staging to fix eval error
This fixes the eval error of the small (and "big"?) NixOS test set that
was fixed in 1088f05 & eba8f542.
Diffstat (limited to 'pkgs/development/python-modules/myfitnesspal/default.nix')
-rw-r--r--pkgs/development/python-modules/myfitnesspal/default.nix17
1 files changed, 12 insertions, 5 deletions
diff --git a/pkgs/development/python-modules/myfitnesspal/default.nix b/pkgs/development/python-modules/myfitnesspal/default.nix
index 53e5f825344..0638ce5d1ee 100644
--- a/pkgs/development/python-modules/myfitnesspal/default.nix
+++ b/pkgs/development/python-modules/myfitnesspal/default.nix
@@ -1,6 +1,9 @@
 { lib, fetchPypi, buildPythonPackage
-, blessed, keyring, keyrings-alt, lxml, measurement, python-dateutil, requests, six
-, mock, nose }:
+, blessed, keyring, keyrings-alt, lxml, measurement, python-dateutil, requests, six, rich
+, pytestCheckHook, mock, nose }:
+
+# TODO: Define this package in "all-packages.nix" using "toPythonApplication".
+# This currently errors out, complaining about not being able to find "etree" from "lxml" even though "lxml" is defined in "propagatedBuildInputs".
 
 buildPythonPackage rec {
   pname = "myfitnesspal";
@@ -11,14 +14,18 @@ buildPythonPackage rec {
     sha256 = "c2275e91c794a3569a76c47c78cf2ff04d7f569a98558227e899ead7b30af0d6";
   };
 
-  # Remove overly restrictive version constraints on keyring and keyrings.alt
+  # Remove overly restrictive version constraints
   postPatch = ''
     sed -i 's/keyring>=.*/keyring/' requirements.txt
     sed -i 's/keyrings.alt>=.*/keyrings.alt/' requirements.txt
+    sed -i 's/rich>=.*/rich/' requirements.txt
   '';
 
-  checkInputs = [ mock nose ];
-  propagatedBuildInputs = [ blessed keyring keyrings-alt lxml measurement python-dateutil requests six ];
+  propagatedBuildInputs = [ blessed keyring keyrings-alt lxml measurement python-dateutil requests six rich ];
+
+  # Integration tests require an account to be set
+  disabledTests = [ "test_integration" ];
+  checkInputs = [ pytestCheckHook mock nose ];
 
   meta = with lib; {
     description = "Access your meal tracking data stored in MyFitnessPal programatically";