Merge pull request #167677 from mweinelt/revert-toggl-cli

This commit is contained in:
Martin Weinelt 2022-04-07 12:26:03 +02:00 committed by GitHub
commit e348744098
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,7 +20,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "toggl-cli"; pname = "toggl-cli";
version = "3"; version = "2.4.3";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.6"; disabled = pythonOlder "3.6";
@ -28,7 +28,7 @@ buildPythonPackage rec {
src = fetchPypi { src = fetchPypi {
pname = "togglCli"; pname = "togglCli";
inherit version; inherit version;
sha256 = "sha256-SkA/u1q//AyYn0v6uAXXsjANhFppxxjKhlhWhsK649w="; sha256 = "sha256-ncMwiMwYivaFu5jrAsm1oCuXP/PZ2ALT+M+CmV6dtFo=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
@ -58,8 +58,9 @@ buildPythonPackage rec {
postPatch = '' postPatch = ''
substituteInPlace requirements.txt \ substituteInPlace requirements.txt \
--replace "notify-py==0.3.1" "notify-py>=0.3.1" \ --replace "notify-py==0.3.1" "notify-py>=0.3.1" \
--replace "click==7.1.2" "click>=7.1.2" \ --replace "click==8.0.3" "click>=8.0.3" \
--replace "pbr==5.5.1" "pbr>=5.5.1" --replace "pbr==5.8.0" "pbr>=5.8.0" \
--replace "inquirer==2.9.1" "inquirer>=2.9.1"
substituteInPlace pytest.ini \ substituteInPlace pytest.ini \
--replace ' --cov toggl -m "not premium"' "" --replace ' --cov toggl -m "not premium"' ""
''; '';