Merge branch 'master' into gcc-7
This commit is contained in:
@@ -3,13 +3,13 @@
|
||||
, ipaddress, backports_ssl_match_hostname, docker_pycreds
|
||||
}:
|
||||
buildPythonPackage rec {
|
||||
version = "3.0.0";
|
||||
version = "2.7.0";
|
||||
pname = "docker";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://pypi/d/docker/${name}.tar.gz";
|
||||
sha256 = "4a1083656c6ac7615c19094d9b5e052f36e38d0b07e63d7e506c9b5b32c3abe2";
|
||||
sha256 = "144248308e8ea31c4863c6d74e1b55daf97cc190b61d0fe7b7313ab920d6a76c";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
||||
26
pkgs/development/python-modules/micawber/default.nix
Normal file
26
pkgs/development/python-modules/micawber/default.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi, beautifulsoup4 }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "micawber";
|
||||
version = "0.3.5";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0pnq6j8f144virhri0drgf0058x6qcxfd5yrb0ynbwr8djh326yn";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ beautifulsoup4 ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://micawber.readthedocs.io/en/latest/;
|
||||
description = "A small library for extracting rich content from urls";
|
||||
license = licenses.mit;
|
||||
longDescription = ''
|
||||
micawber supplies a few methods for retrieving rich metadata
|
||||
about a variety of links, such as links to youtube videos.
|
||||
micawber also provides functions for parsing blocks of text and html
|
||||
and replacing links to videos with rich embedded content.
|
||||
'';
|
||||
maintainers = with maintainers; [ davidak ];
|
||||
};
|
||||
}
|
||||
32
pkgs/development/python-modules/moinmoin/default.nix
Normal file
32
pkgs/development/python-modules/moinmoin/default.nix
Normal file
@@ -0,0 +1,32 @@
|
||||
{ lib, buildPythonPackage, fetchurl, fetchpatch
|
||||
, pytest, werkzeug, pygments
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
name = "moinmoin-${ver}";
|
||||
ver = "1.9.9";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://static.moinmo.in/files/moin-${ver}.tar.gz";
|
||||
sha256 = "197ga41qghykmir80ik17f9hjpmixslv3zjgj7bj9qvs1dvdg5s3";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Recommended to install on their download page.
|
||||
(fetchpatch {
|
||||
url = "https://bitbucket.org/thomaswaldmann/moin-1.9/commits/561b7a9c2bd91b61d26cd8a5f39aa36bf5c6159e/raw";
|
||||
sha256 = "1nscnl9nspnrwyf3n95ig0ihzndryinq9kkghliph6h55cncfc65";
|
||||
})
|
||||
./fix_tests.patch
|
||||
];
|
||||
|
||||
checkInputs = [ pytest werkzeug pygments ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Advanced, easy to use and extensible WikiEngine";
|
||||
|
||||
homepage = "http://moinmo.in/";
|
||||
|
||||
license = licenses.gpl2Plus;
|
||||
};
|
||||
}
|
||||
16
pkgs/development/python-modules/moinmoin/fix_tests.patch
Normal file
16
pkgs/development/python-modules/moinmoin/fix_tests.patch
Normal file
@@ -0,0 +1,16 @@
|
||||
diff -ru3 moin-1.9.9-old/MoinMoin/conftest.py moin-1.9.9-new/MoinMoin/conftest.py
|
||||
--- moin-1.9.9-old/MoinMoin/conftest.py 2016-10-31 23:44:02.000000000 +0300
|
||||
+++ moin-1.9.9-new/MoinMoin/conftest.py 2018-02-18 12:13:19.551929093 +0300
|
||||
@@ -22,10 +22,11 @@
|
||||
|
||||
import atexit
|
||||
import sys
|
||||
+import os
|
||||
|
||||
import py
|
||||
|
||||
-rootdir = py.magic.autopath().dirpath()
|
||||
+rootdir = os.path.abspath(os.path.dirname(__file__))
|
||||
moindir = rootdir.join("..")
|
||||
sys.path.insert(0, str(moindir))
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
{ lib, buildPythonPackage, fetchFromGitHub, pynacl, six }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pymacaroons-pynacl";
|
||||
version = "0.9.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "matrix-org";
|
||||
repo = "pymacaroons";
|
||||
rev = "v${version}";
|
||||
sha256 = "0bykjk01zdndp6gjr30x46blsn0cvxa7j0zh5g8raxwaawchjhii";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ pynacl six ];
|
||||
|
||||
# Tests require an old version of hypothesis
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Macaroon library for Python";
|
||||
homepage = https://github.com/matrix-org/pymacaroons;
|
||||
license = licenses.mit;
|
||||
};
|
||||
}
|
||||
@@ -11,11 +11,8 @@ buildPythonPackage rec {
|
||||
sha256 = "0z9i1z4hjzmp23igyhvg131gikbrr947506lwfb3fayf0agwfv8f";
|
||||
};
|
||||
|
||||
#remove deadline from tests, see https://github.com/pyca/pynacl/issues/370
|
||||
preCheck = ''
|
||||
sed -i 's/deadline=1500, //' tests/test_pwhash.py
|
||||
sed -i 's/deadline=1500, //' tests/test_aead.py
|
||||
'';
|
||||
#set timeout to unlimited, remove deadline from tests, see https://github.com/pyca/pynacl/issues/370
|
||||
patches = [ ./pynacl-no-timeout-and-deadline.patch ];
|
||||
|
||||
checkInputs = [ pytest coverage hypothesis ];
|
||||
propagatedBuildInputs = [ libsodium cffi six ];
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
diff --git a/tests/test_pwhash.py b/tests/test_pwhash.py
|
||||
index 9634c85..7f20316 100644
|
||||
--- a/tests/test_pwhash.py
|
||||
+++ b/tests/test_pwhash.py
|
||||
@@ -20,7 +20,7 @@ import os
|
||||
import sys
|
||||
import unicodedata as ud
|
||||
|
||||
-from hypothesis import given, settings
|
||||
+from hypothesis import given, settings, unlimited
|
||||
from hypothesis.strategies import integers, text
|
||||
|
||||
import pytest
|
||||
@@ -411,7 +411,7 @@ def test_str_verify_argon2_ref_fail(password_hash, password):
|
||||
integers(min_value=1024 * 1024,
|
||||
max_value=16 * 1024 * 1024)
|
||||
)
|
||||
-@settings(deadline=1500, max_examples=20)
|
||||
+@settings(timeout=unlimited, deadline=None, max_examples=20)
|
||||
def test_argon2i_str_and_verify(password, ops, mem):
|
||||
_psw = password.encode('utf-8')
|
||||
pw_hash = nacl.pwhash.argon2i.str(_psw, opslimit=ops, memlimit=mem)
|
||||
@@ -425,7 +425,7 @@ def test_argon2i_str_and_verify(password, ops, mem):
|
||||
integers(min_value=1024 * 1024,
|
||||
max_value=16 * 1024 * 1024)
|
||||
)
|
||||
-@settings(deadline=1500, max_examples=20)
|
||||
+@settings(timeout=unlimited, deadline=None, max_examples=20)
|
||||
def test_argon2id_str_and_verify(password, ops, mem):
|
||||
_psw = password.encode('utf-8')
|
||||
pw_hash = nacl.pwhash.argon2id.str(_psw, opslimit=ops, memlimit=mem)
|
||||
@@ -439,7 +439,7 @@ def test_argon2id_str_and_verify(password, ops, mem):
|
||||
integers(min_value=1024 * 1024,
|
||||
max_value=16 * 1024 * 1024)
|
||||
)
|
||||
-@settings(deadline=1500, max_examples=20)
|
||||
+@settings(timeout=unlimited, deadline=None, max_examples=20)
|
||||
def test_argon2i_str_and_verify_fail(password, ops, mem):
|
||||
_psw = password.encode('utf-8')
|
||||
pw_hash = nacl.pwhash.argon2i.str(_psw, opslimit=ops, memlimit=mem)
|
||||
@@ -448,7 +448,7 @@ def test_argon2i_str_and_verify_fail(password, ops, mem):
|
||||
|
||||
|
||||
@given(text(alphabet=PASSWD_CHARS, min_size=5, max_size=20))
|
||||
-@settings(deadline=1500, max_examples=5)
|
||||
+@settings(timeout=unlimited, deadline=None, max_examples=5)
|
||||
def test_pwhash_str_and_verify(password):
|
||||
_psw = password.encode('utf-8')
|
||||
|
||||
@@ -9,11 +9,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "yarl";
|
||||
version = "1.1.0";
|
||||
version = "1.1.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "162630v7f98l27h11msk9416lqwm2mpgxh4s636594nlbfs9by3a";
|
||||
sha256 = "a69dd7e262cdb265ac7d5e929d55f2f3d07baaadd158c8f19caebf8dde08dfe8";
|
||||
};
|
||||
|
||||
checkInputs = [ pytest pytestrunner ];
|
||||
|
||||
Reference in New Issue
Block a user