python3Packages.pynacl: switch to pytestCheckHook
This commit is contained in:
parent
15a4732733
commit
6874b7001e
|
@ -1,16 +1,17 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, pytest
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
, libsodium
|
, libsodium
|
||||||
, cffi
|
, cffi
|
||||||
, six
|
|
||||||
, hypothesis
|
, hypothesis
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pynacl";
|
pname = "pynacl";
|
||||||
version = "1.4.0";
|
version = "1.4.0";
|
||||||
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit version;
|
inherit version;
|
||||||
|
@ -18,15 +19,22 @@ buildPythonPackage rec {
|
||||||
sha256 = "01b56hxrbif3hx8l6rwz5kljrgvlbj7shmmd2rjh0hn7974a5sal";
|
sha256 = "01b56hxrbif3hx8l6rwz5kljrgvlbj7shmmd2rjh0hn7974a5sal";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [ pytest hypothesis ];
|
buildInputs = [
|
||||||
buildInputs = [ libsodium ];
|
libsodium
|
||||||
propagatedBuildInputs = [ cffi six ];
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
cffi
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
hypothesis
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
SODIUM_INSTALL = "system";
|
SODIUM_INSTALL = "system";
|
||||||
|
|
||||||
checkPhase = ''
|
pythonImportsCheck = [ "nacl" ];
|
||||||
py.test
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
maintainers = with maintainers; [ va1entin ];
|
maintainers = with maintainers; [ va1entin ];
|
||||||
|
|
Loading…
Reference in a new issue