Merge branch 'master' into staging-next

This commit is contained in:
Jan Tojnar
2021-01-24 20:41:42 +01:00
631 changed files with 2683 additions and 2201 deletions
@@ -28,7 +28,7 @@ buildPythonPackage rec {
];
doCheck = true;
checkPhase = ''HOME=$TMP nosetests'';
checkPhase = "HOME=$TMP nosetests";
meta = with lib; {
description = "Set of packages that Enthought has found useful in creating a number of applications.";
@@ -6,7 +6,7 @@ buildPythonPackage rec {
inherit pname version;
sha256 = "0s84kd9vblbjz61q7zchx64a6hmdqb4lillna5ryh0g9ij76g6r5";
};
preBuild = ''echo > README.rst'';
preBuild = "echo > README.rst";
# setup.py uses a python3 os.path.join
disabled = !isPy3k;
propagatedBuildInputs = [ pygtrie ];
@@ -21,7 +21,7 @@ buildPythonPackage rec {
pytest-benchmark
];
checkPhase = ''pytest --benchmark-skip'';
checkPhase = "pytest --benchmark-skip";
propagatedBuildInputs = [
python-dateutil
@@ -1,4 +1,5 @@
{ lib
, stdenv
, buildPythonPackage
, fetchFromGitHub
, humanfriendly
@@ -7,6 +8,7 @@
, pytest
, mock
, util-linux
, isPy38
}:
buildPythonPackage rec {
@@ -20,13 +22,18 @@ buildPythonPackage rec {
sha256 = "0rnmxwrim4razlv4vi3krxk5lc5ksck6h5374j8avqwplika7q2x";
};
# capturer is broken on darwin / py38, so we skip the test until a fix for
# https://github.com/xolox/python-capturer/issues/10 is released.
doCheck = !(isPy38 && stdenv.isDarwin);
checkPhase = ''
PATH=$PATH:$out/bin pytest . -k "not test_plain_text_output_format \
and not test_auto_install"
'';
checkInputs = [ pytest mock util-linux ];
checkInputs = [ pytest mock util-linux verboselogs capturer ];
propagatedBuildInputs = [ humanfriendly verboselogs capturer ];
pythonImportsCheck = [ "coloredlogs" ];
propagatedBuildInputs = [ humanfriendly ];
meta = with lib; {
description = "Colored stream handler for Python's logging module";
@@ -0,0 +1,48 @@
{ lib
, stdenv
, fetchPypi
, buildPythonPackage
, isPy3k
, mock
, pytestCheckHook
, cloudpickle
, pyinotify
, macfsevents
}:
buildPythonPackage rec {
pname = "doit";
version = "0.33.1";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "37c3b35c2151647b968b2af24481112b2f813c30f695366db0639d529190a143";
};
propagatedBuildInputs = [ cloudpickle ]
++ lib.optional stdenv.isLinux pyinotify
++ lib.optional stdenv.isDarwin macfsevents;
checkInputs = [ mock pytestCheckHook ];
disabledTests = [
# depends on doit-py, which has a circular dependency on doit
"test___main__.py"
];
meta = with lib; {
homepage = "https://pydoit.org/";
description = "A task management & automation tool";
license = licenses.mit;
longDescription = ''
doit is a modern open-source build-tool written in python
designed to be simple to use and flexible to deal with complex
work-flows. It is specially suitable for building and managing
custom work-flows where there is no out-of-the-box solution
available.
'';
maintainers = with maintainers; [ pSub ];
};
}
@@ -11,7 +11,7 @@ buildPythonPackage rec {
checkInputs = [ nose ];
checkPhase = ''nosetests'';
checkPhase = "nosetests";
meta = with lib; {
description = "Emoji for Python";
@@ -21,7 +21,7 @@ buildPythonPackage rec {
and not test_conditional_upload and not test_conditional_download_with_older_target \
''
# need until https://ftputil.sschwarzer.net/trac/ticket/140#ticket is fixed
+ lib.optionalString stdenv.isDarwin ''and not test_error_message_reuse''
+ lib.optionalString stdenv.isDarwin "and not test_error_message_reuse"
+ ''"'';
meta = with lib; {
@@ -12,7 +12,7 @@ buildPythonPackage rec {
checkInputs = [ pytest ];
# Suppress overly verbose output if tests run successfully
checkPhase = ''pytest >/dev/null || pytest'';
checkPhase = "pytest >/dev/null || pytest";
meta = {
homepage = "https://github.com/jpvanhal/inflection";
@@ -24,7 +24,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [ pbr python-jenkins pyyaml six stevedore fasteners jinja2 ];
# Need to fix test deps, relies on stestr and a few other packages that aren't available on nixpkgs
checkPhase = ''$out/bin/jenkins-jobs --help'';
checkPhase = "$out/bin/jenkins-jobs --help";
meta = with lib; {
description = "Jenkins Job Builder is a system for configuring Jenkins jobs using simple YAML files stored in Git";
@@ -31,7 +31,7 @@ in buildPythonPackage rec {
'';
# We do not want any wrappers here.
postFixup = '''';
postFixup = "";
checkPhase = ''
tests/run-tests
@@ -1,18 +1,28 @@
{ lib, stdenv, buildPythonPackage, fetchPypi, pillow }:
{ lib, buildPythonPackage, fetchFromGitHub, fetchpatch, pillow }:
buildPythonPackage rec {
pname = "piexif";
version = "1.1.3";
# patch does not apply to PyPI sdist due to different line endings
src = fetchFromGitHub {
owner = "hMatoba";
repo = "Piexif";
rev = version;
sha256 = "1akmaxq1cjr8wghwaaql1bd3sajl8psshl58lprgfsigrvnklp8b";
};
patches = [
# Fix tests with Pillow >= 7.2.0: https://github.com/hMatoba/Piexif/pull/109
(fetchpatch {
url = "https://github.com/hMatoba/Piexif/commit/5209b53e9689ce28dcd045f384633378d619718f.patch";
sha256 = "0ak571jf76r1vszp2g3cd5c16fz2zkbi43scayy933m5qdrhd8g1";
})
];
# Pillow needed for unit tests
checkInputs = [ pillow ];
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "06sz58q4mrw472p8fbnq7wsj8zpi5js5r8phm2hiwfmz0v33bjw3";
};
meta = with lib; {
description = "Simplify Exif manipulations with Python";
homepage = "https://github.com/hMatoba/Piexif";
@@ -12,7 +12,7 @@ buildPythonPackage rec {
checkInputs = [ pytest pytestcov mock cmdline ];
propagatedBuildInputs = [ pytest-fixture-config pytest-shutil virtualenv ];
checkPhase = '' py.test tests/unit '';
checkPhase = "py.test tests/unit ";
nativeBuildInputs = [ pytest ];
@@ -28,8 +28,7 @@ buildPythonPackage rec {
else
''--replace 'ALT_TOOL = "bsdtar"' "ALT_TOOL = \"${libarchive}/bin/bsdtar\""
'')
+ ''
'';
+ "";
# the tests only work with the standard unrar package
doCheck = useUnrar;
LC_ALL = "en_US.UTF-8";