depot/third_party/nixpkgs/pkgs/development/python-modules/myfitnesspal/default.nix
Default email 2ce89355c3 Project import generated by Copybara.
GitOrigin-RevId: 22a81aa5fc15b2d41b12f7160a71cd4a9f3c3fa1
2020-06-15 17:56:04 +02:00

29 lines
970 B
Nix

{ lib, fetchPypi, buildPythonPackage
, blessed, keyring, keyrings-alt, lxml, measurement, python-dateutil, requests, six
, mock, nose }:
buildPythonPackage rec {
pname = "myfitnesspal";
version = "1.14.0";
src = fetchPypi {
inherit pname version;
sha256 = "66bf61c3d782cd80f380d3856da5f635f5b8de032e62d916c26d48dc322846a6";
};
# 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 ];
};
}