pythonPackages.pynacl: refactor remove deprecated hypothesis testing args
This commit is contained in:
parent
83ec5c102b
commit
1faa09be01
@ -1,14 +1,21 @@
|
|||||||
{ stdenv, buildPythonPackage, fetchFromGitHub, pytest, libsodium, cffi, six, hypothesis}:
|
{ stdenv
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, pytest
|
||||||
|
, libsodium
|
||||||
|
, cffi
|
||||||
|
, six
|
||||||
|
, hypothesis
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pynacl";
|
pname = "pynacl";
|
||||||
version = "1.3.0";
|
version = "1.3.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchPypi {
|
||||||
owner = "pyca";
|
inherit version;
|
||||||
repo = pname;
|
pname = "PyNaCl";
|
||||||
rev = version;
|
sha256 = "0c6100edd16fefd1557da078c7a31e7b7d7a52ce39fdca2bec29d4f7b6e7600c";
|
||||||
sha256 = "0ac00d5bfdmz1x428h2scq5b34llp61yhxradl94qjwz7ikqv052";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [ pytest hypothesis ];
|
checkInputs = [ pytest hypothesis ];
|
||||||
@ -16,6 +23,13 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
SODIUM_INSTALL = "system";
|
SODIUM_INSTALL = "system";
|
||||||
|
|
||||||
|
# fixed in next release 1.3.0+
|
||||||
|
# https://github.com/pyca/pynacl/pull/480
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace tests/test_bindings.py \
|
||||||
|
--replace "average_size=128," ""
|
||||||
|
'';
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
py.test
|
py.test
|
||||||
'';
|
'';
|
||||||
|
Loading…
Reference in New Issue
Block a user