Merge #84442: staging-next branch
This commit is contained in:
@@ -1,31 +1,23 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, locale, pytest }:
|
||||
{ lib, buildPythonPackage, fetchPypi, locale, pytestCheckHook }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "click";
|
||||
version = "7.0";
|
||||
version = "7.1.1";
|
||||
|
||||
src = fetchPypi {
|
||||
pname = "Click";
|
||||
inherit version;
|
||||
sha256 = "5b94b49521f6456670fdb30cd82a4eca9412788a93fa6dd6df72c94d5a8ff2d7";
|
||||
inherit pname version;
|
||||
sha256 = "1k60i2fvxf8rxazlv04mnsmlsjrj5i5sda3x1ifhr0nqi7mb864a";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace click/_unicodefun.py \
|
||||
substituteInPlace src/click/_unicodefun.py \
|
||||
--replace "'locale'" "'${locale}/bin/locale'"
|
||||
'';
|
||||
|
||||
buildInputs = [ pytest ];
|
||||
|
||||
checkPhase = ''
|
||||
py.test tests
|
||||
'';
|
||||
|
||||
# https://github.com/pallets/click/issues/823
|
||||
doCheck = false;
|
||||
checkInputs = [ pytestCheckHook ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "http://click.pocoo.org/";
|
||||
homepage = "https://click.palletsprojects.com/";
|
||||
description = "Create beautiful command line interfaces in Python";
|
||||
longDescription = ''
|
||||
A Python package for creating beautiful command line interfaces in a
|
||||
|
||||
@@ -2,14 +2,14 @@
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, fetchpatch
|
||||
, isPy27
|
||||
, ipaddress
|
||||
, openssl
|
||||
, cryptography_vectors
|
||||
, darwin
|
||||
, packaging
|
||||
, six
|
||||
, pythonOlder
|
||||
, enum34
|
||||
, ipaddress
|
||||
, isPyPy
|
||||
, cffi
|
||||
, pytest
|
||||
@@ -17,15 +17,16 @@
|
||||
, iso8601
|
||||
, pytz
|
||||
, hypothesis
|
||||
, enum34
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "cryptography";
|
||||
version = "2.8"; # Also update the hash in vectors.nix
|
||||
version = "2.9"; # Also update the hash in vectors.nix
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0l8nhw14npknncxdnp7n4hpmjyscly6g7fbivyxkjwvlv071zniw";
|
||||
sha256 = "0vlqy2pki0fh1h6l6cbb43z3g2n9fv0849dzb5gqwjv0bkpx7b0c";
|
||||
};
|
||||
|
||||
outputs = [ "out" "dev" ];
|
||||
@@ -35,9 +36,8 @@ buildPythonPackage rec {
|
||||
propagatedBuildInputs = [
|
||||
packaging
|
||||
six
|
||||
] ++ stdenv.lib.optional (pythonOlder "3.4") enum34
|
||||
++ stdenv.lib.optional (pythonOlder "3.3") ipaddress
|
||||
++ stdenv.lib.optional (!isPyPy) cffi;
|
||||
] ++ stdenv.lib.optional (!isPyPy) cffi
|
||||
++ stdenv.lib.optionals isPy27 [ ipaddress enum34 ];
|
||||
|
||||
checkInputs = [
|
||||
cryptography_vectors
|
||||
@@ -48,9 +48,8 @@ buildPythonPackage rec {
|
||||
pytz
|
||||
];
|
||||
|
||||
# remove when https://github.com/pyca/cryptography/issues/4998 is fixed
|
||||
checkPhase = ''
|
||||
py.test --disable-pytest-warnings tests -k 'not load_ecdsa_no_named_curve'
|
||||
py.test --disable-pytest-warnings tests
|
||||
'';
|
||||
|
||||
# IOKit's dependencies are inconsistent between OSX versions, so this is the best we
|
||||
@@ -64,9 +63,11 @@ buildPythonPackage rec {
|
||||
common cryptographic algorithms such as symmetric ciphers, message
|
||||
digests, and key derivation functions.
|
||||
Our goal is for it to be your "cryptographic standard library". It
|
||||
supports Python 2.7, Python 3.4+, and PyPy 5.3+.
|
||||
supports Python 2.7, Python 3.5+, and PyPy 5.4+.
|
||||
'';
|
||||
homepage = "https://github.com/pyca/cryptography";
|
||||
changelog = "https://cryptography.io/en/latest/changelog/#v"
|
||||
+ replaceStrings [ "." ] [ "-" ] version;
|
||||
license = with licenses; [ asl20 bsd3 psfl ];
|
||||
maintainers = with maintainers; [ primeos ];
|
||||
};
|
||||
|
||||
@@ -7,7 +7,7 @@ buildPythonPackage rec {
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "05pi3shqz0fgvy0d5yazza67bbnam8fkrx2ayrrclgkaqms23lvc";
|
||||
sha256 = "1h7dcgwrjxqk1bzkangbvlhhlgyqd7cfi894dv1cd5m2sp7csblc";
|
||||
};
|
||||
|
||||
# No tests included
|
||||
|
||||
Reference in New Issue
Block a user