nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 20.03 29 lines 968 B view raw
1{ lib, fetchPypi, buildPythonPackage 2, blessed, keyring, keyrings-alt, lxml, measurement, python-dateutil, requests, six 3, mock, nose }: 4 5buildPythonPackage rec { 6 pname = "myfitnesspal"; 7 version = "1.13.4"; 8 9 src = fetchPypi { 10 inherit pname version; 11 sha256 = "552cc696e170f12f75fd12b1447be01fa2d0bfd85e14da5928afd9aab2277b98"; 12 }; 13 14 # Remove overly restrictive version constraints on keyring and keyrings.alt 15 postPatch = '' 16 sed -i 's/keyring>=.*/keyring/' requirements.txt 17 sed -i 's/keyrings.alt>=.*/keyrings.alt/' requirements.txt 18 ''; 19 20 checkInputs = [ mock nose ]; 21 propagatedBuildInputs = [ blessed keyring keyrings-alt lxml measurement python-dateutil requests six ]; 22 23 meta = with lib; { 24 description = "Access your meal tracking data stored in MyFitnessPal programatically"; 25 homepage = https://github.com/coddingtonbear/python-myfitnesspal; 26 license = licenses.mit; 27 maintainers = with maintainers; [ bhipple ]; 28 }; 29}