2019-07-07 20:16:20 +01:00
|
|
|
{ lib, fetchPypi, buildPythonPackage
|
|
|
|
, blessed, keyring, keyrings-alt, lxml, measurement, python-dateutil, requests, six
|
|
|
|
, mock, nose }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "myfitnesspal";
|
2020-06-06 07:47:18 +01:00
|
|
|
version = "1.14.0";
|
2019-07-07 20:16:20 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-06 07:47:18 +01:00
|
|
|
sha256 = "66bf61c3d782cd80f380d3856da5f635f5b8de032e62d916c26d48dc322846a6";
|
2019-07-07 20:16:20 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
# Remove overly restrictive version constraints on keyring and keyrings.alt
|
|
|
|
postPatch = ''
|
|
|
|
sed -i 's/keyring>=.*/keyring/' requirements.txt
|
|
|
|
sed -i 's/keyrings.alt>=.*/keyrings.alt/' requirements.txt
|
|
|
|
'';
|
|
|
|
|
|
|
|
checkInputs = [ mock nose ];
|
|
|
|
propagatedBuildInputs = [ blessed keyring keyrings-alt lxml measurement python-dateutil requests six ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Access your meal tracking data stored in MyFitnessPal programatically";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/coddingtonbear/python-myfitnesspal";
|
2019-07-07 20:16:20 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ bhipple ];
|
|
|
|
};
|
|
|
|
}
|