3
0
Fork 0
forked from mirrors/nixpkgs

pythonPackages.construct: Fix darwin build

The package runs fine on darwin. Using pytest as a test runner also
resolves the checkPhase issue on Python 3.5+.
This commit is contained in:
Josef Kemetmüller 2018-03-10 23:36:00 +01:00
parent 5c25232728
commit 91a9453496

View file

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