Merge pull request #99607 from austinbutler/toggl-cli

python3Packages.toggl-cli: 2.1.0 -> 2.2.1
This commit is contained in:
Marek Mahut 2020-10-05 13:43:11 +02:00 committed by GitHub
commit 9a284fc0c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 57 additions and 21 deletions

View File

@ -1,20 +1,23 @@
{ stdenv, buildPythonPackage, fetchPypi, python-editor, readchar, blessings, pytest, pytestcov, pexpect, pytest-mock }:
{ stdenv, buildPythonPackage, fetchFromGitHub, python-editor, readchar, blessed, pytest, pytestcov, pexpect, pytest-mock }:
buildPythonPackage rec {
pname = "inquirer";
version = "2.7.0";
src = fetchPypi {
inherit pname version;
sha256 = "e819188de0ca7985a99c282176c6f50fb08b0d33867fd1965d3f3e97d6c8f83f";
# PyPi archive currently broken: https://github.com/magmax/python-inquirer/issues/106
src = fetchFromGitHub rec {
owner = "magmax";
repo = "python-inquirer";
rev = version;
sha256 = "152l5qjgkag8zkr69ax2i5s8xcac1qvyngisrplbnbzwbpf77d0d";
};
propagatedBuildInputs = [ python-editor readchar blessings ];
propagatedBuildInputs = [ blessed python-editor readchar ];
# No real changes in 2.0.0...e0edfa3
postPatch = ''
substituteInPlace setup.py \
--replace "readchar == 2.0.1" "readchar >= 2.0.0"
substituteInPlace requirements.txt \
--replace "blessed==1.17.6" "blessed~=1.17" \
--replace "readchar==2.0.1" "readchar>=2.0.0"
'';
checkInputs = [ pytest pytestcov pexpect pytest-mock ];

View File

@ -0,0 +1,35 @@
{ lib, buildPythonPackage, fetchPypi, isPy3k, alsaUtils, libnotify, which, loguru, pytest }:
buildPythonPackage rec {
pname = "notify_py";
version = "0.2.3";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "1i209xsff54hipdk9cg6va60fl33swg126yfgkg3wsgjmi6s07ca";
};
postPatch = ''
substituteInPlace setup.py \
--replace "loguru==0.4.1" "loguru~=0.5.0"
'';
propagatedBuildInputs = [ alsaUtils libnotify loguru which ];
checkInputs = [ alsaUtils libnotify pytest which ];
checkPhase = ''
pytest
'';
pythonImportsCheck = [ "notifypy" ];
meta = with lib; {
description = " Python Module for sending cross-platform desktop notifications on Windows, macOS, and Linux.";
homepage = "https://github.com/ms7m/notify-py/";
license = licenses.mit;
maintainers = with maintainers; [ austinbutler ];
};
}

View File

@ -4,6 +4,7 @@
, factory_boy
, faker
, inquirer
, notify-py
, pbr
, pendulum
, ptable
@ -11,7 +12,6 @@
, pytestcov
, pytest-mock
, requests
, setuptools
, twine
, validate-email
}:
@ -19,22 +19,19 @@
buildPythonPackage rec {
pname = "toggl-cli";
version = "2.1.0";
disabled = pythonOlder "3.5" || pythonAtLeast "3.8";
version = "2.2.1";
disabled = pythonOlder "3.5";
src = fetchPypi {
pname = "togglCli";
inherit version;
sha256 = "0iirvvb8772569v28d36bnryksm1qkkw48d48fw26j7ka01qq6mm";
sha256 = "1izsxag98lvivkwf7724g2ak6icjak9jdqphaq1a79kwdnqprx1m";
};
postPatch = ''
substituteInPlace requirements.txt \
--replace "pendulum==2.0.4" "pendulum>=2.0.4" \
--replace "click-completion==0.5.0" "click-completion>=0.5.0" \
--replace "click==7.0" "click>=7.0" \
--replace "pbr==5.1.2" "pbr>=5.1.2" \
--replace "inquirer==2.5.1" "inquirer>=2.5.1"
--replace "inquirer==2.6.3" "inquirer>=2.6.3" \
--replace "notify-py==0.2.2" "notify-py>=0.2.2"
'';
nativeBuildInputs = [ pbr twine ];
@ -53,15 +50,15 @@ buildPythonPackage rec {
'';
propagatedBuildInputs = [
setuptools
click
click-completion
validate-email
inquirer
notify-py
pendulum
ptable
requests
inquirer
pbr
validate-email
];
meta = with stdenv.lib; {
@ -71,4 +68,3 @@ buildPythonPackage rec {
maintainers = [ maintainers.mmahut ];
};
}

View File

@ -4075,6 +4075,8 @@ in {
notify = callPackage ../development/python-modules/notify { };
notify-py = callPackage ../development/python-modules/notify-py { };
notmuch = callPackage ../development/python-modules/notmuch { inherit (pkgs) notmuch; };
nototools = callPackage ../data/fonts/noto-fonts/tools.nix { };