Merge pull request #135347 from fabaff/tests-pybase64

python3Packages.pybase64: switch to pytestCheckHook
This commit is contained in:
Sandro 2021-08-24 22:48:51 +02:00 committed by GitHub
commit 964c56b5b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 ];
};