Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.6 kB · 81 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182{ lib, blessed, browser-cookie3, buildPythonPackage, cloudscraper, fetchPypi, keyring, keyrings-alt, lxml, measurement, mock, pytestCheckHook, python-dateutil, pythonOlder, requests, rich, setuptools, typing-extensions,}:
buildPythonPackage rec { pname = "myfitnesspal"; version = "2.1.2"; pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi { inherit pname version; hash = "sha256-eE807M8qFDlSMAcE+GFJyve1YfmlWmB3ML9VJhMUeIE="; };
pythonRelaxDeps = [ "typing-extensions" ];
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [ blessed browser-cookie3 cloudscraper keyring keyrings-alt lxml measurement python-dateutil requests rich typing-extensions ];
nativeCheckInputs = [ mock pytestCheckHook ];
postPatch = '' # Remove overly restrictive version constraints sed -i -e "s/>=.*//" requirements.txt
# https://github.com/coddingtonbear/python-measurement/pull/8 substituteInPlace tests/test_client.py \ --replace-fail "Weight" "Mass" \ --replace-fail '"Mass"' '"Weight"' '';
disabledTests = [ # Integration tests require an account to be set "test_integration" ];
pythonImportsCheck = [ "myfitnesspal" ];
meta = { description = "Python module to access meal tracking data stored in MyFitnessPal"; mainProgram = "myfitnesspal"; homepage = "https://github.com/coddingtonbear/python-myfitnesspal"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ bhipple ]; };}