mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-21 08:01:31 +00:00
Merge master into staging-next
This commit is contained in:
@@ -11,12 +11,12 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "azure-mgmt-monitor";
|
||||
version = "0.10.0";
|
||||
version = "0.11.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
extension = "zip";
|
||||
sha256 = "0r3l55mhd00zx8sw13d7i9l7r214946s1y3wxcswxad7q5660zfm";
|
||||
sha256 = "c6e1fe83dd2ddffa7f6d90c7aa63b3128042396a3893c14dc4816ad28cb15016";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
||||
@@ -9,6 +9,8 @@
|
||||
, gnutar
|
||||
, p7zip
|
||||
, cabextract
|
||||
, cramfsprogs
|
||||
, cramfsswap
|
||||
, lzma
|
||||
, nose
|
||||
, pycrypto
|
||||
@@ -29,7 +31,7 @@ buildPythonPackage {
|
||||
sha256 = "1bxgj569fzwv6jhcbl864nmlsi9x1k1r20aywjxc8b9b1zgqrlvc";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ zlib xz ncompress gzip bzip2 gnutar p7zip cabextract lzma pycrypto ]
|
||||
propagatedBuildInputs = [ zlib xz ncompress gzip bzip2 gnutar p7zip cabextract cramfsswap cramfsprogs lzma pycrypto ]
|
||||
++ stdenv.lib.optional visualizationSupport pyqtgraph;
|
||||
|
||||
# setup.py only installs version.py during install, not test
|
||||
|
||||
@@ -6,11 +6,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "braintree";
|
||||
version = "4.2.0";
|
||||
version = "4.3.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0aw5n1hqrg5pb5xmcr1b8y9i7v8zj23q9k2p4b6bwnq2c2fqi8wr";
|
||||
sha256 = "d2b5ead45dbfe98b6099d387c7f12b7d2994ae0efb60679e6bb0929a06027e16";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ requests ];
|
||||
|
||||
@@ -2,12 +2,12 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "cfgv";
|
||||
version = "3.1.0";
|
||||
version = "3.2.0";
|
||||
disabled = isPy27;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "c8e8f552ffcc6194f4e18dd4f68d9aef0c0d58ae7e7be8c82bee3c5e9edfa513";
|
||||
sha256 = "cf22deb93d4bcf92f345a5c3cd39d3d41d6340adc60c78bbbd6588c384fda6a1";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ six ];
|
||||
|
||||
@@ -10,11 +10,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "cli_helpers";
|
||||
version = "2.0.1";
|
||||
version = "2.1.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "18f7d8c5a22d85fc685d56a9f301d8b9f7f0d7d4e9033a27563b066c2ab41833";
|
||||
sha256 = "dd6f164310f7d86fa3da1f82043a9c784e44a02ad49be932a80624261e56979b";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
||||
56
pkgs/development/python-modules/cot/default.nix
Normal file
56
pkgs/development/python-modules/cot/default.nix
Normal file
@@ -0,0 +1,56 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi, pythonOlder, isPy3k
|
||||
, argcomplete, colorlog, pyvmomi, requests, verboselogs
|
||||
, psutil, pyopenssl, setuptools
|
||||
, mock, pytest, pytest-mock, pytestCheckHook, qemu
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "cot";
|
||||
version = "2.2.1";
|
||||
|
||||
disabled = !isPy3k;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "f4b3553415f90daac656f89d3e82e79b3d751793239bb173a683b4cc0ceb2635";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ colorlog pyvmomi requests verboselogs pyopenssl setuptools ]
|
||||
++ stdenv.lib.optional (pythonOlder "3.3") psutil;
|
||||
|
||||
checkInputs = [ mock pytestCheckHook pytest-mock qemu ];
|
||||
|
||||
# Many tests require network access and/or ovftool (https://code.vmware.com/web/tool/ovf)
|
||||
# try enabling these tests with ovftool once/if it is added to nixpkgs
|
||||
disabledTests = [
|
||||
"HelperGenericTest"
|
||||
"TestCOTAddDisk"
|
||||
"TestCOTAddFile"
|
||||
"TestCOTEditHardware"
|
||||
"TestCOTEditProduct"
|
||||
"TestCOTEditProperties"
|
||||
"TestCOTInjectConfig"
|
||||
"TestISO"
|
||||
"TestOVFAPI"
|
||||
"TestQCOW2"
|
||||
"TestRAW"
|
||||
"TestVMDKConversion"
|
||||
];
|
||||
|
||||
|
||||
# argparse is part of the standardlib
|
||||
prePatch = ''
|
||||
substituteInPlace setup.py --replace "'argparse'," ""
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Common OVF Tool";
|
||||
longDescription = ''
|
||||
COT (the Common OVF Tool) is a tool for editing Open Virtualization Format (.ovf, .ova) virtual appliances,
|
||||
with a focus on virtualized network appliances such as the Cisco CSR 1000V and Cisco IOS XRv platforms.
|
||||
'';
|
||||
homepage = "https://github.com/glennmatthews/cot";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ evanjs ];
|
||||
};
|
||||
}
|
||||
@@ -2,11 +2,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "grpcio-tools";
|
||||
version = "1.29.0";
|
||||
version = "1.31.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0f681c1ebd5472b804baa391b16dc59d92b065903999566f4776bfbd010bcec9";
|
||||
sha256 = "3b08cbd3f4d5b60e3bff8f859e6e03db739967a684268164abc940415e23ca51";
|
||||
};
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
36
pkgs/development/python-modules/itemloaders/default.nix
Normal file
36
pkgs/development/python-modules/itemloaders/default.nix
Normal file
@@ -0,0 +1,36 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, isPy27
|
||||
, w3lib
|
||||
, parsel
|
||||
, jmespath
|
||||
, itemadapter
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "itemloaders";
|
||||
version = "1.0.1";
|
||||
|
||||
disabled = isPy27;
|
||||
|
||||
# Tests not included in PyPI tarball
|
||||
src = fetchFromGitHub {
|
||||
owner = "scrapy";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "0frs0s876ddha844vhnhhiggyk3qbhhngrwkvgg3c0mrnn282f6k";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ w3lib parsel jmespath itemadapter ];
|
||||
|
||||
checkInputs = [ pytestCheckHook ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Base library for scrapy's ItemLoader";
|
||||
homepage = "https://github.com/scrapy/itemloaders";
|
||||
license = licenses.bsd3;
|
||||
maintainers = [ maintainers.marsam ];
|
||||
};
|
||||
}
|
||||
@@ -24,10 +24,11 @@
|
||||
, pytest-twisted
|
||||
, botocore
|
||||
, itemadapter
|
||||
, itemloaders
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "2.2.1";
|
||||
version = "2.3.0";
|
||||
pname = "Scrapy";
|
||||
|
||||
disabled = isPy27;
|
||||
@@ -57,22 +58,24 @@ buildPythonPackage rec {
|
||||
zope_interface
|
||||
protego
|
||||
itemadapter
|
||||
itemloaders
|
||||
];
|
||||
|
||||
LC_ALL = "en_US.UTF-8";
|
||||
|
||||
# Disable doctest plugin—enabled in the shipped pytest.ini—because it causes pytest to hang
|
||||
# Ignore proxy tests because requires mitmproxy
|
||||
# Ignore utils_display tests because it requires pygments
|
||||
# Ignore test_retry_dns_error because tries to resolve an invalid dns and weirdly fails with "Reactor was unclean"
|
||||
# Ignore xml encoding test on darwin because lxml can't find encodings https://bugs.launchpad.net/lxml/+bug/707396
|
||||
checkPhase = ''
|
||||
substituteInPlace pytest.ini --replace "--doctest-modules" ""
|
||||
pytest --ignore=tests/test_linkextractors_deprecated.py --ignore=tests/test_proxy_connect.py --deselect tests/test_crawl.py::CrawlTestCase::test_retry_dns_error ${lib.optionalString stdenv.isDarwin "--deselect tests/test_utils_iterators.py::LxmlXmliterTestCase::test_xmliter_encoding"}
|
||||
pytest --ignore=tests/test_linkextractors_deprecated.py --ignore=tests/test_proxy_connect.py --ignore=tests/test_utils_display.py --deselect tests/test_crawl.py::CrawlTestCase::test_retry_dns_error ${lib.optionalString stdenv.isDarwin "--deselect tests/test_utils_iterators.py::LxmlXmliterTestCase::test_xmliter_encoding"}
|
||||
'';
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "6a09beb5190bfdee2d72cf261822eae5d92fe8a86ac9ee1f55fc44b4864ca583";
|
||||
sha256 = "b4d08cdacb615563c291d053ef1ba2dc08d9d4b6d81578684eaa1cf7b832f90c";
|
||||
};
|
||||
|
||||
postInstall = ''
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{ stdenv, buildPythonPackage , fetchPypi, pythonOlder
|
||||
, pytest, jupyter_core, pandas, ipywidgets }:
|
||||
, pytest, jupyter_core, pandas, ipywidgets, jupyter, altair }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "vega";
|
||||
@@ -12,7 +12,11 @@ buildPythonPackage rec {
|
||||
};
|
||||
|
||||
buildInputs = [ pytest ];
|
||||
propagatedBuildInputs = [ jupyter_core pandas ipywidgets ];
|
||||
propagatedBuildInputs = [ jupyter jupyter_core pandas ipywidgets ];
|
||||
|
||||
# currently, recommonmark is broken on python3
|
||||
doCheck = false;
|
||||
checkInputs = [ altair ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "An IPython/Jupyter widget for Vega and Vega-Lite";
|
||||
|
||||
@@ -1,29 +1,18 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, openglSupport ? true
|
||||
, libX11
|
||||
, pyopengl
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pkgconfig
|
||||
, libjpeg
|
||||
, libtiff
|
||||
, SDL
|
||||
, gst-plugins-base
|
||||
, libnotify
|
||||
, freeglut
|
||||
, xorg
|
||||
, which
|
||||
, cairo
|
||||
, requests
|
||||
, pango
|
||||
, pathlib2
|
||||
, python
|
||||
, doxygen
|
||||
, ncurses
|
||||
, libpng
|
||||
, gstreamer
|
||||
, wxGTK
|
||||
, numpy
|
||||
, pillow
|
||||
, six
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@@ -38,16 +27,7 @@ buildPythonPackage rec {
|
||||
doCheck = false;
|
||||
|
||||
nativeBuildInputs = [ pkgconfig which doxygen wxGTK ];
|
||||
|
||||
buildInputs = [ libjpeg libtiff SDL
|
||||
gst-plugins-base libnotify freeglut xorg.libSM ncurses
|
||||
requests libpng gstreamer libX11
|
||||
pathlib2
|
||||
(wxGTK.gtk)
|
||||
]
|
||||
++ lib.optional openglSupport pyopengl;
|
||||
|
||||
hardeningDisable = [ "format" ];
|
||||
buildInputs = [ ncurses wxGTK.gtk ];
|
||||
|
||||
DOXYGEN = "${doxygen}/bin/doxygen";
|
||||
|
||||
@@ -68,10 +48,9 @@ buildPythonPackage rec {
|
||||
|
||||
installPhase = ''
|
||||
${python.interpreter} setup.py install --skip-build --prefix=$out
|
||||
wrapPythonPrograms
|
||||
'';
|
||||
|
||||
passthru = { inherit wxGTK openglSupport; };
|
||||
passthru = { inherit wxGTK; };
|
||||
|
||||
|
||||
meta = {
|
||||
|
||||
Reference in New Issue
Block a user