Merge branch 'master' into staging

* master: (26 commits)
  python.pkgs.cairocffi: update tests for Cairo 1.15.12
  python.pkgs.cairocffi: 0.8.0 -> 0.8.1
  freecell-solver: fix build
  perlPackages.CPANPLUS: restore build inputs removed in #41394
  Fix GHCJS 8.4/8.2 in sandboxed builds (#41411)
  dockerTools.pullImage: expose image* attributes (#41366)
  rust: disable tests on darwin
  python.pkgs.detox: 0.11 -> 0.12
  certbot: disable check on darwin
  freeimage: fix build with glibc 2.27
  shadowsocks-libev: supports darwin (#41421)
  pythonPackages.jira: fix build (#41419)
  SDL: propagate libiconv
  schema2ldif: Init at 1.3
  nixos/exim: Add unit restart trigger (#41418)
  Add myself as maintainer for dnsdist
  Add myself as maintainer
  synapse-bt: init at 2018-06-04 (#41402)
  skim: 0.3.2 -> 0.4.0 (#41417)
  ctags: fix source url (#41382)
  ...
This commit is contained in:
Orivej Desh
2018-06-04 03:50:03 +00:00
27 changed files with 229 additions and 43 deletions

View File

@@ -0,0 +1,24 @@
diff --git a/cairocffi/test_cairo.py b/cairocffi/test_cairo.py
index 1588349..5452910 100644
--- a/cairocffi/test_cairo.py
+++ b/cairocffi/test_cairo.py
@@ -292,7 +292,8 @@ def test_pdf_surface():
pdf_bytes = file_obj.getvalue()
assert pdf_bytes.startswith(b'%PDF')
assert b'/MediaBox [ 0 0 123 432 ]' in pdf_bytes
- assert pdf_bytes.count(b'/Type /Page\n') == 1
+ assert pdf_bytes.count(b'/Type /Pages') == 1
+ assert pdf_bytes.count(b'/Type /Page') == 2
file_obj = io.BytesIO()
surface = PDFSurface(file_obj, 1, 1)
@@ -306,7 +307,8 @@ def test_pdf_surface():
assert b'/MediaBox [ 0 0 1 1 ]' not in pdf_bytes
assert b'/MediaBox [ 0 0 12 100 ]' in pdf_bytes
assert b'/MediaBox [ 0 0 42 700 ]' in pdf_bytes
- assert pdf_bytes.count(b'/Type /Page\n') == 2
+ assert pdf_bytes.count(b'/Type /Pages') == 1
+ assert pdf_bytes.count(b'/Type /Page') == 3
def test_svg_surface():

View File

@@ -16,11 +16,11 @@
buildPythonPackage rec {
pname = "cairocffi";
version = "0.8.0";
version = "0.8.1";
src = fetchPypi {
inherit pname version;
sha256 = "0i9m3p39g9wrkpjvpawch2qmnmm3cnim7niz3nmmbcp2hrkixwk5";
sha256 = "0y373vafv7q35msg7gqdn7niifr3j4j4n070hflxshahs59irss7";
};
LC_ALL = "en_US.UTF-8";
@@ -47,6 +47,7 @@ buildPythonPackage rec {
gdk_pixbuf = gdk_pixbuf.out;
})
./fix_test_scaled_font.patch
./cairocffi-0.8.1-cairo-1.15.12.patch
];
meta = with lib; {

View File

@@ -3,11 +3,11 @@
buildPythonPackage rec {
pname = "detox";
version = "0.11";
version = "0.12";
src = fetchPypi {
inherit pname version;
sha256 = "4719ca48c4ea5ffd908b1bc3d5d1b593b41e71dee17180d58d8a3e7e8f588d45";
sha256 = "06svvkszg6xlg0fr471smn4rmpfga960d6qqsyhyiwa48k59n4gk";
};
buildInputs = [ pytest ];

View File

@@ -1,29 +1,35 @@
{ lib, buildPythonPackage, fetchPypi, isPy3k
, pytest, pytestrunner, pbr, glibcLocales , pytestcov
, requests, requests_oauthlib, requests_toolbelt, defusedxml }:
, requests, requests_oauthlib, requests_toolbelt, defusedxml
, ipython
}:
buildPythonPackage rec {
pname = "jira";
version = "1.0.15";
PBR_VERSION = version;
src = fetchPypi {
inherit pname version;
sha256 = "20108a1d5b0dd058d5d4e0047f2d09ee06aaa413b22ca4d5c249e86167417fe8";
};
buildInputs = [ glibcLocales pytest pytestcov pytestrunner pbr ];
propagatedBuildInputs = [ requests requests_oauthlib requests_toolbelt defusedxml ];
propagatedBuildInputs = [ requests requests_oauthlib requests_toolbelt defusedxml pbr ipython ];
# impure tests because of connectivity attempts to jira servers
doCheck = false;
patches = [ ./sphinx-fix.patch ];
LC_ALL = "en_US.utf8";
disabled = !isPy3k;
# no tests in release tarball
doCheck = false;
meta = with lib; {
description = "This library eases the use of the JIRA REST API from Python.";
license = licenses.bsd2;
maintainers = with maintainers; [ globin ];
maintainers = with maintainers; [ globin ma27 ];
};
}

View File

@@ -0,0 +1,11 @@
diff --git a/setup.py b/setup.py
index c49a24d..31aeec2 100644
--- a/setup.py
+++ b/setup.py
@@ -11,5 +11,5 @@ except ImportError:
setuptools.setup(
- setup_requires=['pbr>=3.0.0', 'setuptools>=17.1', 'pytest-runner', 'sphinx>=1.6.5'],
+ setup_requires=['pbr>=3.0.0', 'setuptools>=17.1', 'pytest-runner'],
pbr=True)