diff --git a/pkgs/development/python-modules/tomlkit/default.nix b/pkgs/development/python-modules/tomlkit/default.nix index 9a9ecba7d0bf..6430bef1aa88 100644 --- a/pkgs/development/python-modules/tomlkit/default.nix +++ b/pkgs/development/python-modules/tomlkit/default.nix @@ -1,5 +1,11 @@ -{ lib, buildPythonPackage, fetchPypi, isPy27 -, enum34, functools32, typing ? null +{ lib +, buildPythonPackage +, fetchPypi +, isPy27 +, enum34 +, functools32, typing ? null +, pytestCheckHook +, pyaml }: buildPythonPackage rec { @@ -15,10 +21,12 @@ buildPythonPackage rec { lib.optionals isPy27 [ enum34 functools32 ] ++ lib.optional isPy27 typing; - # The Pypi tarball doesn't include tests, and the GitHub source isn't - # buildable until we bootstrap poetry, see - # https://github.com/NixOS/nixpkgs/pull/53599#discussion_r245855665 - doCheck = false; + checkInputs = [ + pyaml + pytestCheckHook + ]; + + pythonImportsCheck = [ "tomlkit" ]; meta = with lib; { homepage = "https://github.com/sdispater/tomlkit";