diff --git a/pkgs/development/python-modules/construct/default.nix b/pkgs/development/python-modules/construct/default.nix index 78aa0aab5c08..afba2e17bf64 100644 --- a/pkgs/development/python-modules/construct/default.nix +++ b/pkgs/development/python-modules/construct/default.nix @@ -1,4 +1,4 @@ -{ stdenv, buildPythonPackage, fetchFromGitHub, six, pythonOlder }: +{ stdenv, buildPythonPackage, fetchFromGitHub, six, pytest, pythonOlder }: buildPythonPackage rec { pname = "construct"; @@ -14,15 +14,16 @@ buildPythonPackage rec { propagatedBuildInputs = [ six ]; - # Tests fail with the following error on Python 3.5+ - # TypeError: not all arguments converted during string formatting - doCheck = pythonOlder "3.5"; + checkInputs = [ pytest ]; + + checkPhase = '' + py.test -k 'not test_numpy' tests + ''; meta = with stdenv.lib; { description = "Powerful declarative parser (and builder) for binary data"; homepage = http://construct.readthedocs.org/; license = licenses.mit; - platforms = platforms.linux; maintainers = with maintainers; [ bjornfor ]; }; }