1{ stdenv, buildPythonPackage, fetchFromGitHub, six, pytest }: 2 3buildPythonPackage rec { 4 pname = "construct"; 5 version = "2.8.16"; 6 name = pname + "-" + version; 7 8 src = fetchFromGitHub { 9 owner = "construct"; 10 repo = "construct"; 11 rev = "v${version}"; 12 sha256 = "0lzz1dy419n254qccch7yx4nkpwd0fsyjhnsnaf6ysgwzqxxv63j"; 13 }; 14 15 propagatedBuildInputs = [ six ]; 16 17 checkInputs = [ pytest ]; 18 19 checkPhase = '' 20 py.test -k 'not test_numpy' tests 21 ''; 22 23 meta = with stdenv.lib; { 24 description = "Powerful declarative parser (and builder) for binary data"; 25 homepage = http://construct.readthedocs.org/; 26 license = licenses.mit; 27 maintainers = with maintainers; [ bjornfor ]; 28 }; 29}