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