2018-09-12 03:18:37 +02:00
|
|
|
{ stdenv, buildPythonPackage, fetchFromGitHub
|
|
|
|
, six, pytest, arrow
|
|
|
|
}:
|
2017-10-29 14:32:12 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2018-09-12 03:18:37 +02:00
|
|
|
pname = "construct";
|
|
|
|
version = "2.9.45";
|
2017-10-29 14:32:12 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2018-09-12 03:18:37 +02:00
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0ig66xrzswpkhhmw123p2nvr15a9lxz54a1fmycfdh09327c1d3y";
|
2017-10-29 14:32:12 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ six ];
|
|
|
|
|
2018-09-12 03:18:37 +02:00
|
|
|
checkInputs = [ pytest arrow ];
|
2018-03-10 23:36:00 +01:00
|
|
|
|
2018-09-12 03:18:37 +02:00
|
|
|
# TODO: figure out missing dependencies
|
|
|
|
doCheck = false;
|
2018-03-10 23:36:00 +01:00
|
|
|
checkPhase = ''
|
2018-09-12 03:18:37 +02:00
|
|
|
py.test -k 'not test_numpy and not test_gallery' tests
|
2018-03-10 23:36:00 +01:00
|
|
|
'';
|
2017-10-29 14:32:12 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Powerful declarative parser (and builder) for binary data";
|
|
|
|
homepage = http://construct.readthedocs.org/;
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ bjornfor ];
|
|
|
|
};
|
|
|
|
}
|