2018-03-10 23:36:00 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchFromGitHub, six, pytest, pythonOlder }:
|
2017-10-29 14:32:12 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2017-11-09 12:26:09 +01:00
|
|
|
pname = "construct";
|
2017-10-29 14:33:18 +01:00
|
|
|
version = "2.8.16";
|
2017-11-09 12:26:09 +01:00
|
|
|
name = pname + "-" + version;
|
2017-10-29 14:32:12 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "construct";
|
|
|
|
repo = "construct";
|
|
|
|
rev = "v${version}";
|
2017-10-29 14:33:18 +01:00
|
|
|
sha256 = "0lzz1dy419n254qccch7yx4nkpwd0fsyjhnsnaf6ysgwzqxxv63j";
|
2017-10-29 14:32:12 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ six ];
|
|
|
|
|
2018-03-10 23:36:00 +01:00
|
|
|
checkInputs = [ pytest ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test -k 'not test_numpy' tests
|
|
|
|
'';
|
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 ];
|
|
|
|
};
|
|
|
|
}
|