Merge pull request #36774 from knedlsepp/fix-pythonPackages.construct-on-darwin
pythonPackages.construct: Fix darwin build
This commit is contained in:
commit
ce9288cf3b
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, buildPythonPackage, fetchFromGitHub, six, pythonOlder }:
|
{ stdenv, buildPythonPackage, fetchFromGitHub, six, pytest, pythonOlder }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "construct";
|
pname = "construct";
|
||||||
@ -14,15 +14,16 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
propagatedBuildInputs = [ six ];
|
propagatedBuildInputs = [ six ];
|
||||||
|
|
||||||
# Tests fail with the following error on Python 3.5+
|
checkInputs = [ pytest ];
|
||||||
# TypeError: not all arguments converted during string formatting
|
|
||||||
doCheck = pythonOlder "3.5";
|
checkPhase = ''
|
||||||
|
py.test -k 'not test_numpy' tests
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Powerful declarative parser (and builder) for binary data";
|
description = "Powerful declarative parser (and builder) for binary data";
|
||||||
homepage = http://construct.readthedocs.org/;
|
homepage = http://construct.readthedocs.org/;
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
platforms = platforms.linux;
|
|
||||||
maintainers = with maintainers; [ bjornfor ];
|
maintainers = with maintainers; [ bjornfor ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user