python3Packages.toggl-cli: 2.4.1 -> 2.4.2
This commit is contained in:
parent
b552e4ada4
commit
b9fb66d635
|
@ -1,54 +1,41 @@
|
||||||
{ lib, buildPythonPackage, fetchPypi, pythonAtLeast, pythonOlder
|
{ lib, buildPythonPackage, fetchPypi, pythonAtLeast, pythonOlder, click
|
||||||
, click
|
, click-completion, factory_boy, faker, inquirer, notify-py, pbr, pendulum
|
||||||
, click-completion
|
, ptable, pytestCheckHook, pytestcov, pytest-mock, requests, twine
|
||||||
, factory_boy
|
, validate-email }:
|
||||||
, faker
|
|
||||||
, inquirer
|
|
||||||
, notify-py
|
|
||||||
, pbr
|
|
||||||
, pendulum
|
|
||||||
, ptable
|
|
||||||
, pytest
|
|
||||||
, pytestcov
|
|
||||||
, pytest-mock
|
|
||||||
, requests
|
|
||||||
, twine
|
|
||||||
, validate-email
|
|
||||||
}:
|
|
||||||
|
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "toggl-cli";
|
pname = "toggl-cli";
|
||||||
version = "2.4.1";
|
version = "2.4.2";
|
||||||
disabled = pythonOlder "3.5";
|
disabled = pythonOlder "3.5";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
pname = "togglCli";
|
pname = "togglCli";
|
||||||
inherit version;
|
inherit version;
|
||||||
sha256 = "19lry8adcznzmzbvghyid3yl4j05db6931bw38af5vrkkyzyf62i";
|
sha256 = "1wgh231r16jyvaj1ch1pajvl9szflb4srs505pfdwdlqvz7rzww8";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace requirements.txt \
|
substituteInPlace requirements.txt \
|
||||||
--replace "inquirer==2.6.3" "inquirer>=2.6.3" \
|
--replace "notify-py==0.3.1" "notify-py>=0.3.1"
|
||||||
--replace "notify-py==0.2.2" "notify-py>=0.2.2"
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ pbr twine ];
|
nativeBuildInputs = [ pbr twine ];
|
||||||
checkInputs = [ pbr pytest pytestcov pytest-mock faker factory_boy ];
|
checkInputs = [ pbr pytestCheckHook pytestcov pytest-mock faker factory_boy ];
|
||||||
|
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
export TOGGL_API_TOKEN=your_api_token
|
export TOGGL_API_TOKEN=your_api_token
|
||||||
export TOGGL_PASSWORD=toggl_password
|
export TOGGL_PASSWORD=toggl_password
|
||||||
export TOGGL_USERNAME=user@example.com
|
export TOGGL_USERNAME=user@example.com
|
||||||
'';
|
|
||||||
|
|
||||||
checkPhase = ''
|
|
||||||
runHook preCheck
|
|
||||||
pytest -k "not premium and not TestDateTimeType and not TestDateTimeField" tests/unit --maxfail=20
|
|
||||||
runHook postCheck
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
disabledTests = [
|
||||||
|
"integration"
|
||||||
|
"premium"
|
||||||
|
"test_parsing"
|
||||||
|
"test_type_check"
|
||||||
|
"test_now"
|
||||||
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
click
|
click
|
||||||
click-completion
|
click-completion
|
||||||
|
|
Loading…
Reference in a new issue