pythonPackages.myfitnesspal: init at 1.13.3
This commit is contained in:
parent
34f31030b1
commit
b0fd855015
29
pkgs/development/python-modules/myfitnesspal/default.nix
Normal file
29
pkgs/development/python-modules/myfitnesspal/default.nix
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
{ lib, fetchPypi, buildPythonPackage
|
||||||
|
, blessed, keyring, keyrings-alt, lxml, measurement, python-dateutil, requests, six
|
||||||
|
, mock, nose }:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "myfitnesspal";
|
||||||
|
version = "1.13.3";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "4f785341f0499bad8d3400cfcfffd99b7fcf8aac3971390f8ec3dfaed8361b20";
|
||||||
|
};
|
||||||
|
|
||||||
|
# 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";
|
||||||
|
homepage = https://github.com/coddingtonbear/python-myfitnesspal;
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ bhipple ];
|
||||||
|
};
|
||||||
|
}
|
@ -2470,6 +2470,8 @@ in {
|
|||||||
|
|
||||||
mwlib-rl = callPackage ../development/python-modules/mwlib-rl { };
|
mwlib-rl = callPackage ../development/python-modules/mwlib-rl { };
|
||||||
|
|
||||||
|
myfitnesspal = callPackage ../development/python-modules/myfitnesspal { };
|
||||||
|
|
||||||
natsort = callPackage ../development/python-modules/natsort { };
|
natsort = callPackage ../development/python-modules/natsort { };
|
||||||
|
|
||||||
naturalsort = callPackage ../development/python-modules/naturalsort { };
|
naturalsort = callPackage ../development/python-modules/naturalsort { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user