diff --git a/pkgs/development/python-modules/bytecode/default.nix b/pkgs/development/python-modules/bytecode/default.nix index fc0a3a6cab77..75d4f38b2c3d 100644 --- a/pkgs/development/python-modules/bytecode/default.nix +++ b/pkgs/development/python-modules/bytecode/default.nix @@ -2,12 +2,13 @@ , buildPythonPackage , fetchFromGitHub , pythonOlder -, aenum +, pytestCheckHook }: buildPythonPackage rec { pname = "bytecode"; version = "0.12.0"; + disabled = pythonOlder "3.6"; src = fetchFromGitHub { owner = "vstinner"; @@ -16,9 +17,11 @@ buildPythonPackage rec { sha256 = "sha256-CEfDoJ+JlnxLLVnSxv7bEN891tmwG9zAvtT8GNvp8JU="; }; - disabled = pythonOlder "3.5"; + checkInputs = [ + pytestCheckHook + ]; - propagatedBuildInputs = lib.optionals (pythonOlder "3.6") [ aenum ]; + pythonImportsCheck = [ "bytecode" ]; meta = with lib; { homepage = "https://github.com/vstinner/bytecode";