Merge branch 'master' into staging-next

This commit is contained in:
Jan Tojnar
2019-12-03 16:51:48 +01:00
144 changed files with 1463 additions and 927 deletions

View File

@@ -1,6 +1,8 @@
{ lib
, buildPythonPackage
, fetchPypi
, python
, isPy3k
, msrest
, azure-common
}:
@@ -20,6 +22,10 @@ buildPythonPackage rec {
azure-common
];
postInstall = lib.optionalString isPy3k ''
rm -rf $out/${python.sitePackages}/azure/__init__.py
'';
# has no tests
doCheck = false;
@@ -27,6 +33,6 @@ buildPythonPackage rec {
description = "This is the Microsoft Azure Log Analytics Client Library";
homepage = "https://github.com/Azure/azure-sdk-for-python";
license = licenses.mit;
maintainers = with maintainers; [ mwilsoninsight ];
maintainers = with maintainers; [ mwilsoninsight jonringer ];
};
}

View File

@@ -5,13 +5,13 @@
}:
buildPythonPackage rec {
version = "0.1.0";
version = "0.3.0";
pname = "azure-mgmt-appconfiguration";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "0z2f0rbv7drdxihny479bv80bnhgvx8gb2pr0jvbaslll6d6rxig";
sha256 = "1igl3ikdwcz7d2zcja5nm2qjysjh53vgwzcc96lylypmq6z4aq1s";
extension = "zip";
};

View File

@@ -7,13 +7,13 @@
}:
buildPythonPackage rec {
version = "9.0.0";
version = "10.0.0";
pname = "azure-mgmt-compute";
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "06795ccb7377eaa3864819a1c63b9bfe9957a58814c65025aef89e9cd81190fc";
sha256 = "1s3bx6knxw5dxycp43yimvgrh0i19drzd09asglcwz2x5mr3bpyg";
};
postInstall = if isPy3k then "" else ''

View File

@@ -5,13 +5,13 @@
}:
buildPythonPackage rec {
version = "0.2.1";
version = "0.3.0";
pname = "azure-mgmt-imagebuilder";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "0mwlvy4x5nr3hsz7wdpdhpzwarzzwz4225bfpd68hr0pcjgzspky";
sha256 = "0r4sxr3pbcci5qif1ip1lrix3cryj0b3asqch3zds4q705jiakc4";
extension = "zip";
};

View File

@@ -5,13 +5,13 @@
}:
buildPythonPackage rec {
version = "0.4.0";
version = "0.5.0";
pname = "azure-mgmt-kusto";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "1sx8f98206wccj0mbmb75c4wyhf57g3pnkhl9wn70lqzi9n4mk0b";
sha256 = "0r6j3yp7ys0zgszqdjm6y90nigsapni4xhfpfgyk5c5qbgdpl93w";
extension = "zip";
};

View File

@@ -28,8 +28,8 @@ buildPythonPackage rec {
];
postInstall = lib.optionalString isPy3k ''
rm $out/${python.sitePackages}/azure/__init__.py
rm $out/${python.sitePackages}/azure/mgmt/__init__.py
rm -rf $out/${python.sitePackages}/azure/__init__.py
rm -rf $out/${python.sitePackages}/azure/mgmt/__init__.py
'';
# has no tests

View File

@@ -5,13 +5,13 @@
}:
buildPythonPackage rec {
version = "0.4.0";
version = "0.5.0";
pname = "azure-mgmt-sqlvirtualmachine";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "1jxmikjvyxkwr8c9kn6xw8gvj9pajlk7y8111rq8fgkivwjq8wcm";
sha256 = "1b9am8raa17hxnz7d5pk2ix0309wsnhnchq1mi22icd728sl5adm";
extension = "zip";
};

View File

@@ -19,6 +19,8 @@ buildPythonPackage rec {
checkInputs = [ pytest sphinx ];
__darwinAllowLocalNetworking = true;
# test_aside_basic times out,
# test_aside_cancel fails because modifies PYTHONPATH and cant find pytest
checkPhase = ''

View File

@@ -10,11 +10,6 @@ buildPythonPackage rec {
sha256 = "408038ab5fdeca67554e8f6742d1521cd3cd0ee0ff9d47f29318a4f4da31c308";
};
postPatch = ''
# odd broken tests, don't appear in GitHub repo
rm tests/demo_classic_usage*.py
'';
propagatedBuildInputs = [ wrapt ];
checkInputs = [ pytest ];
meta = with stdenv.lib; {

View File

@@ -15,7 +15,7 @@ buildPythonPackage rec {
inherit pname version format;
python = "py3";
platform = "manylinux1_x86_64";
sha256 = "a335fb0abdaaeee7ba128b81b5350adfc5d2b2adf6a64cbc4d1a3b7cdf8560da";
sha256 = "0qhp94bjz4icz2f0fnhgck875chiqzy4lvsp6lwhj5jd0zsv2bb3";
};
nativeBuildInputs = [ unzip ];

View File

@@ -1,15 +1,19 @@
{ lib, buildPythonPackage, fetchPypi
, six, cryptography
, mock, pyfakefs
{ lib
, buildPythonPackage
, fetchPypi
, six
, cryptography
, mock
, pyfakefs
}:
buildPythonPackage rec {
pname = "fido2";
version = "0.7.3";
version = "0.8.1";
src = fetchPypi {
inherit pname version;
sha256 = "8b592ec0e51348f29636706fe3266423a0e41c35c9df63a259a91488450c1285";
sha256 = "1hzprnd407g2xh9kyv8j8pq949hwr1snmg3fp65pqfbghzv6i424";
};
propagatedBuildInputs = [ six cryptography ];
@@ -18,7 +22,8 @@ buildPythonPackage rec {
meta = with lib; {
description = "Provides library functionality for FIDO 2.0, including communication with a device over USB.";
homepage = https://github.com/Yubico/python-fido2;
license = licenses.mpl20;
homepage = "https://github.com/Yubico/python-fido2";
license = licenses.bsd2;
maintainers = with maintainers; [ prusnak ];
};
}

View File

@@ -1,12 +1,12 @@
{ stdenv, buildPythonPackage, fetchPypi, requests, protobuf, pycryptodome }:
buildPythonPackage rec {
version = "0.4.3";
version = "0.4.4";
pname = "gpapi";
src = fetchPypi {
inherit version pname;
sha256 = "9fd1351eb29c4da92d3a0ed2cd4e3c1634ea16afddbca133f6acc54766d61b02";
sha256 = "0ampvsv97r3hy1cakif4kmyk1ynf3scbvh4fbk02x7xrxn4kl38w";
};
propagatedBuildInputs = [ requests protobuf pycryptodome ];

View File

@@ -1,4 +1,5 @@
{ lib
{ stdenv
, lib
, buildPythonPackage
, fetchPypi
, nose
@@ -15,10 +16,13 @@ buildPythonPackage rec {
propagatedBuildInputs = [ nose ];
# "OSError: AF_UNIX path too long" for darwin
doCheck = !stdenv.isDarwin;
meta = {
license = lib.licenses.lgpl21;
description = "Exclude specific directories from nosetests runs";
homepage = https://github.com/kgrandis/nose-exclude;
maintainers = with lib.maintainers; [ fridh ];
};
}
}

View File

@@ -1,6 +1,6 @@
{ lib, buildPythonPackage, fetchPypi
, requests, cryptography, pybrowserid, hawkauthlib, six
, grequests, mock, responses, unittest2 }:
, grequests, mock, responses, pytest }:
buildPythonPackage rec {
pname = "PyFxA";
@@ -21,9 +21,13 @@ buildPythonPackage rec {
];
checkInputs = [
grequests mock responses unittest2
grequests mock responses pytest
];
checkPhase = ''
pytest
'';
meta = with lib; {
description = "Firefox Accounts client library for Python";
homepage = https://github.com/mozilla/PyFxA;

View File

@@ -1,5 +1,5 @@
{ lib
, fetchPypi
, fetchFromGitHub
, buildPythonPackage
, astropy
, radio_beam
@@ -10,11 +10,14 @@
buildPythonPackage rec {
pname = "spectral-cube";
version = "0.4.4";
version = "0.4.5";
src = fetchPypi {
inherit pname version;
sha256 = "9051ede204b1e25b6358b5e0e573b624ec0e208c24eb03a7ed4925b745c93b5e";
# Fetch from GitHub instead of PyPi, as 0.4.5 isn't available in PyPi
src = fetchFromGitHub {
owner = "radio-astro-tools";
repo = pname;
rev = "v${version}";
sha256 = "1xc1m6vpl0bm600fx9vypa7zcvwg7yvhgn0w89y6v9d1vl0qcs7z";
};
propagatedBuildInputs = [ astropy radio_beam ];
@@ -40,8 +43,6 @@ buildPythonPackage rec {
license = lib.licenses.bsd3;
platforms = lib.platforms.all;
maintainers = with lib.maintainers; [ smaret ];
broken = true;
};
}