uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
69
pkgs/development/python-modules/myfitnesspal/default.nix
Normal file
69
pkgs/development/python-modules/myfitnesspal/default.nix
Normal file
|
|
@ -0,0 +1,69 @@
|
|||
{ lib
|
||||
, fetchPypi
|
||||
, buildPythonPackage
|
||||
, blessed
|
||||
, keyring
|
||||
, keyrings-alt
|
||||
, lxml
|
||||
, measurement
|
||||
, python-dateutil
|
||||
, requests
|
||||
, rich
|
||||
, typing-extensions
|
||||
, pytestCheckHook
|
||||
, mock
|
||||
, nose
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "myfitnesspal";
|
||||
version = "1.17.0";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-UXFvKQtC44EvscYWXK7KI/do3U0wTWI3zKwvsRdzKrs=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
blessed
|
||||
keyring
|
||||
keyrings-alt
|
||||
lxml
|
||||
measurement
|
||||
python-dateutil
|
||||
requests
|
||||
rich
|
||||
typing-extensions
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
mock
|
||||
nose
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
# Remove overly restrictive version constraints
|
||||
sed -i -e "s/>=.*//" requirements.txt
|
||||
'';
|
||||
|
||||
disabledTests = [
|
||||
# Integration tests require an account to be set
|
||||
"test_integration"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"myfitnesspal"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python module to access meal tracking data stored in MyFitnessPal";
|
||||
homepage = "https://github.com/coddingtonbear/python-myfitnesspal";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ bhipple ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue