python3Packages.pybase64: switch to pytestCheckHook

This commit is contained in:
Fabian Affolter 2021-08-23 00:09:44 +02:00
parent 2142a0a8c9
commit 9bec0bea0a

View file

@ -1,26 +1,28 @@
{ buildPythonPackage, isPy3k, lib, fetchPypi, six, pytest }:
{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "pybase64";
version = "1.2.0";
disabled = !isPy3k;
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "9e310fcf5cfa2cbf7d1d7eb503b6066bec785216bcd1d8c0a736f59d5ec21b0b";
};
propagatedBuildInputs = [ six ];
checkInputs = [ pytest ];
checkInputs = [ pytestCheckHook ];
checkPhase = ''
py.test
'';
pythonImportsCheck = [ "pybase64" ];
meta = with lib; {
homepage = "https://pypi.python.org/pypi/pybase64";
description = "Fast Base64 encoding/decoding";
homepage = "https://github.com/mayeut/pybase64";
license = licenses.bsd2;
maintainers = with maintainers; [ ma27 ];
};