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
92
pkgs/development/python-modules/toggl-cli/default.nix
Normal file
92
pkgs/development/python-modules/toggl-cli/default.nix
Normal file
|
|
@ -0,0 +1,92 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, click
|
||||
, click-completion
|
||||
, factory_boy
|
||||
, faker
|
||||
, fetchPypi
|
||||
, inquirer
|
||||
, notify-py
|
||||
, pbr
|
||||
, pendulum
|
||||
, ptable
|
||||
, pytest-mock
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, requests
|
||||
, twine
|
||||
, validate-email
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "toggl-cli";
|
||||
version = "2.4.3";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchPypi {
|
||||
pname = "togglCli";
|
||||
inherit version;
|
||||
sha256 = "sha256-ncMwiMwYivaFu5jrAsm1oCuXP/PZ2ALT+M+CmV6dtFo=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
pbr
|
||||
twine
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
click
|
||||
click-completion
|
||||
inquirer
|
||||
notify-py
|
||||
pbr
|
||||
pendulum
|
||||
ptable
|
||||
requests
|
||||
validate-email
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
pytest-mock
|
||||
faker
|
||||
factory_boy
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace requirements.txt \
|
||||
--replace "notify-py==0.3.1" "notify-py>=0.3.1" \
|
||||
--replace "click==8.0.3" "click>=8.0.3" \
|
||||
--replace "pbr==5.8.0" "pbr>=5.8.0" \
|
||||
--replace "inquirer==2.9.1" "inquirer>=2.9.1"
|
||||
substituteInPlace pytest.ini \
|
||||
--replace ' --cov toggl -m "not premium"' ""
|
||||
'';
|
||||
|
||||
preCheck = ''
|
||||
export TOGGL_API_TOKEN=your_api_token
|
||||
export TOGGL_PASSWORD=toggl_password
|
||||
export TOGGL_USERNAME=user@example.com
|
||||
'';
|
||||
|
||||
disabledTests = [
|
||||
"integration"
|
||||
"premium"
|
||||
"test_parsing"
|
||||
"test_type_check"
|
||||
"test_now"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"toggl"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Command line tool and set of Python wrapper classes for interacting with toggl's API";
|
||||
homepage = "https://toggl.uhlir.dev/";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ mmahut ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue