From 9bec0bea0ab80d3fc16829be95303dfd1d3b98fd Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 23 Aug 2021 00:09:44 +0200 Subject: [PATCH] python3Packages.pybase64: switch to pytestCheckHook --- .../python-modules/pybase64/default.nix | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/pybase64/default.nix b/pkgs/development/python-modules/pybase64/default.nix index e67d344fd28a..9bb2cfb5ebc5 100644 --- a/pkgs/development/python-modules/pybase64/default.nix +++ b/pkgs/development/python-modules/pybase64/default.nix @@ -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 ]; };