3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #36774 from knedlsepp/fix-pythonPackages.construct-on-darwin

pythonPackages.construct: Fix darwin build
This commit is contained in:
Daiderd Jordan 2018-03-11 14:38:33 +01:00 committed by GitHub
commit ce9288cf3b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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