Merge branch 'staging-next' into staging

Fixes eval on darwin after #69072

Tested using maintainers/scripts/eval-release.sh before and after to see
that the fix works
This commit is contained in:
Dmitry Kalinkin
2019-09-25 19:31:32 -04:00
106 changed files with 2823 additions and 5605 deletions

View File

@@ -39,6 +39,9 @@ buildPythonPackage rec {
pytest
'';
# 368 failed, 10889 passed, 978 skipped, 69 xfailed in 196.24s
doCheck = false;
meta = {
description = "Astronomy/Astrophysics library for Python";
homepage = https://www.astropy.org;

View File

@@ -4,24 +4,15 @@
buildPythonPackage rec {
pname = "CairoSVG";
version = "2.3.0";
version = "2.4.2";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "66f333ef5dc79fdfbd3bbe98adc791b1f854e0461067d202fa7b15de66d517ec";
sha256 = "1bb7irxbaxxb9ahm3z5wsx1q96mm5gzskc7b6q07h9ikcnb8yrjf";
};
patches = [
# fix isort-check
(fetchpatch {
url = https://github.com/Kozea/CairoSVG/commit/b2534b0fc80b9f24a2bff2c938ac5da73ff1e478.patch;
excludes = [ "test_non_regression/__init__.py" ];
sha256 = "1bms75dd0fd978yhlr0k565zq45lzxf0vkihryb7gcwnd42bl6yf";
})
];
propagatedBuildInputs = [ cairocffi cssselect2 defusedxml pillow tinycss2 ];
checkInputs = [ pytest pytestrunner pytestcov pytest-flake8 pytest-isort ];

View File

@@ -0,0 +1,20 @@
{ lib, fetchPypi, buildPythonPackage, six }:
buildPythonPackage rec {
pname = "dict2xml";
version = "1.6.1";
src = fetchPypi {
inherit pname version;
sha256 = "17wsybqq0916i1yh7bpf2cmicldn7d0y2b9mzlgs503fkcpxda5w";
};
propagatedBuildInputs = [ six ];
meta = with lib; {
description = "Super simple library to convert a Python dictionary into an xml string";
homepage = "https://github.com/delfick/python-dict2xml";
license = licenses.mit;
maintainers = with maintainers; [ johnazoidberg ];
};
}

View File

@@ -0,0 +1,59 @@
{ stdenv, lib, buildPythonPackage, fetchPypi, python, isPy27
, dotnet-sdk
, substituteAll
, distro
, unzip
}:
buildPythonPackage rec {
pname = "dotnetcore2";
version = "2.1.8.1";
format = "wheel";
disabled = isPy27;
src = fetchPypi {
inherit pname version format;
python = "py3";
platform = "manylinux1_x86_64";
sha256 = "13zrff5j767d3f8drl397sjhl28winsrfa8pa20svf00xfcsy34s";
};
nativeBuildInputs = [ unzip ];
propagatedBuildInputs = [ distro ];
# needed to apply patches
prePatch = ''
unzip dist/dotnet*
'';
patches = [
( substituteAll {
src = ./runtime.patch;
dotnet = dotnet-sdk;
}
)
];
# unfortunately the noraml pip install fails because the manylinux1 format check fails with NixOS
installPhase = ''
mkdir -p $out/${python.sitePackages}/${pname}
# copy metadata
cp -r dotnetcore2-2* $out/${python.sitePackages}
# copy non-dotnetcore related files
cp -r dotnetcore2/{__init__.py,runtime.py} $out/${python.sitePackages}/${pname}
'';
# no tests, ensure it's one useful function works
checkPhase = ''
${python.interpreter} -c 'from dotnetcore2 import runtime; print(runtime.get_runtime_path())'
'';
meta = with lib; {
description = "DotNet Core runtime";
homepage = "https://github.com/dotnet/core";
license = licenses.mit;
platforms = [ "x86_64-linux" ];
maintainers = with maintainers; [ jonringer ];
};
}

View File

@@ -0,0 +1,19 @@
diff a/dotnetcore2/runtime.py b/dotnetcore2/runtime.py
--- a/dotnetcore2/runtime.py
+++ b/dotnetcore2/runtime.py
@@ -39,13 +39,13 @@ def _get_bin_folder() -> str:
def get_runtime_path():
+ return "@dotnet@/dotnet"
search_string = os.path.join(_get_bin_folder(), 'dotnet*')
matches = [f for f in glob.glob(search_string, recursive=True)]
return matches[0]
def ensure_dependencies() -> Optional[str]:
- if dist is None:
- return None
+ return None
bin_folder = _get_bin_folder()
deps_path = os.path.join(bin_folder, 'deps')

View File

@@ -0,0 +1,24 @@
{ lib, buildPythonPackage, fetchPypi, isPy3k }:
buildPythonPackage rec {
pname = "impacket";
version = "0.9.15";
src = fetchPypi {
inherit pname version;
sha256 = "1sq1698g7wqj731h24f7gr4lc0fz0mxrqv6mm3j4hm2j6h3rrbr6";
};
disabled = isPy3k;
# no tests
doCheck = false;
meta = with lib; {
description = "Network protocols Constructors and Dissectors";
homepage = "https://github.com/CoreSecurity/impacket";
# Modified Apache Software License, Version 1.1
license = licenses.free;
maintainers = with maintainers; [ peterhoeg ];
};
}

View File

@@ -6,11 +6,11 @@
buildPythonPackage rec {
pname = "pycountry";
version = "19.7.15";
version = "19.8.18";
src = fetchPypi {
inherit pname version;
sha256 = "15lhv18za0zv36laksr86rszjhp0slmqzcylm6ds9vpd7gyqprb8";
sha256 = "1jxkdjffrhn0il0nm14dlzxpd6f3v1hbxzxsprcksafgmm0almrw";
};
meta = with stdenv.lib; {

View File

@@ -1,6 +1,4 @@
{ stdenv
, buildPythonPackage
, fetchgit
{ lib, buildPythonPackage, fetchFromGitHub
, isPy3k
, simplejson
, unittest2
@@ -13,8 +11,9 @@ buildPythonPackage {
version = "7.20.0";
disabled = isPy3k;
src = fetchgit {
url = "https://github.com/Lispython/pycurl.git";
src = fetchFromGitHub {
owner = "Lispython";
repo = "pycurl";
rev = "0f00109950b883d680bd85dc6e8a9c731a7d0d13";
sha256 = "1qmw3cm93kxj94s71a8db9lwv2cxmr2wjv7kp1r8zildwdzhaw7j";
};
@@ -22,9 +21,10 @@ buildPythonPackage {
# error: (6, "Couldn't resolve host 'h.wrttn.me'")
doCheck = false;
buildInputs = [ pkgs.curl simplejson unittest2 nose ];
nativeBuildInputs = [ pkgs.curl.dev ];
buildInputs = [ simplejson unittest2 nose ];
meta = with stdenv.lib; {
meta = with lib; {
homepage = https://pypi.python.org/pypi/pycurl2;
description = "A fork from original PycURL library that no maintained from 7.19.0";
license = licenses.mit;

View File

@@ -59,5 +59,7 @@ buildPythonPackage rec {
maintainers = with stdenv.lib.maintainers; [
pandaman
];
# Needs to be updated and have its new dependencies added
broken = true;
};
}

View File

@@ -23,11 +23,15 @@
buildPythonPackage rec {
pname = "weasyprint";
version = "47";
version = "50";
disabled = !isPy3k;
# ignore failing pytest
checkPhase = "pytest -k 'not test_font_stretch'";
# excluded test needs the Ahem font
checkPhase = ''
runHook preCheck
pytest -k 'not test_font_stretch'
runHook postCheck
'';
# ignore failing flake8-test
prePatch = ''
@@ -55,7 +59,7 @@ buildPythonPackage rec {
src = fetchPypi {
inherit version;
pname = "WeasyPrint";
sha256 = "0hd1zwrkfnj7g0jaaf6jvarlj6l5imar6ar78zxdgv17a3s3k3dg";
sha256 = "0invs96zvmcr6wh5klj52jrcnr9qg150v9wpmbhcsf3vv1d1hbcw";
};
meta = with stdenv.lib; {

View File

@@ -1,15 +1,15 @@
{ lib, fetchPypi, buildPythonPackage, intervaltree, pyflakes, requests, lxml, google-i18n-address
, pycountry, html5lib, six
, pycountry, html5lib, six, kitchen, pypdf2, dict2xml, weasyprint
, stdenv
}:
buildPythonPackage rec {
pname = "xml2rfc";
version = "2.18.0";
version = "2.27.1";
src = fetchPypi {
inherit pname version;
sha256 = "e192236798615f34479a9bb9f30df72ce0e5f319df75ecc0473d896713a17451";
sha256 = "00v5gsshy1rmjd334d2awh0mvri949lmyk8f02wfr20rq6fc3xqd";
};
propagatedBuildInputs = [
@@ -21,13 +21,18 @@ buildPythonPackage rec {
pycountry
html5lib
six
kitchen
pypdf2
dict2xml
weasyprint
];
preCheck = ''
export HOME=$(mktemp -d)
'';
doCheck = !stdenv.isDarwin;
# lxml tries to fetch from the internet
doCheck = false;
meta = with lib; {
description = "Tool generating IETF RFCs and drafts from XML sources";
@@ -35,6 +40,6 @@ buildPythonPackage rec {
# Well, parts might be considered unfree, if being strict; see:
# http://metadata.ftp-master.debian.org/changelogs/non-free/x/xml2rfc/xml2rfc_2.9.6-1_copyright
license = licenses.bsd3;
maintainers = [ maintainers.vcunat ];
maintainers = with maintainers; [ vcunat yrashk ];
};
}