diff options
author | Benjamin Hipple <bhipple@protonmail.com> | 2019-07-07 15:16:20 -0400 |
---|---|---|
committer | Benjamin Hipple <bhipple@protonmail.com> | 2019-07-27 14:35:12 -0400 |
commit | b0fd85501529d68dd09956f2ba6eae7097005cb0 (patch) | |
tree | 1adca804163c92604b2e15e329cdee9c9e5e9f9e /pkgs/development/python-modules/myfitnesspal | |
parent | 34f31030b1f8b32ad3889f7adb0150900174293d (diff) | |
download | nixpkgs-b0fd85501529d68dd09956f2ba6eae7097005cb0.tar nixpkgs-b0fd85501529d68dd09956f2ba6eae7097005cb0.tar.gz nixpkgs-b0fd85501529d68dd09956f2ba6eae7097005cb0.tar.bz2 nixpkgs-b0fd85501529d68dd09956f2ba6eae7097005cb0.tar.lz nixpkgs-b0fd85501529d68dd09956f2ba6eae7097005cb0.tar.xz nixpkgs-b0fd85501529d68dd09956f2ba6eae7097005cb0.tar.zst nixpkgs-b0fd85501529d68dd09956f2ba6eae7097005cb0.zip |
pythonPackages.myfitnesspal: init at 1.13.3
Diffstat (limited to 'pkgs/development/python-modules/myfitnesspal')
-rw-r--r-- | pkgs/development/python-modules/myfitnesspal/default.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/myfitnesspal/default.nix b/pkgs/development/python-modules/myfitnesspal/default.nix new file mode 100644 index 00000000000..b839fd2633e --- /dev/null +++ b/pkgs/development/python-modules/myfitnesspal/default.nix @@ -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 ]; + }; +} |