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