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