22 buildPythonPackage rec {
23 pname = "myfitnesspal";
27 disabled = pythonOlder "3.7";
30 inherit pname version;
31 hash = "sha256-H9oKSio+2x4TDCB4YN5mmERUEeETLKahPlW3TDDFE/E=";
34 nativeBuildInputs = [ setuptools ];
36 propagatedBuildInputs = [
56 # Remove overly restrictive version constraints
57 sed -i -e "s/>=.*//" requirements.txt
59 # https://github.com/coddingtonbear/python-measurement/pull/8
60 substituteInPlace tests/test_client.py \
61 --replace-fail "Weight" "Mass" \
62 --replace-fail '"Mass"' '"Weight"'
66 # Integration tests require an account to be set
70 pythonImportsCheck = [ "myfitnesspal" ];
73 description = "Python module to access meal tracking data stored in MyFitnessPal";
74 mainProgram = "myfitnesspal";
75 homepage = "https://github.com/coddingtonbear/python-myfitnesspal";
76 license = lib.licenses.mit;
77 maintainers = with lib.maintainers; [ bhipple ];