2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, buildPythonPackage, fetchFromGitHub, pythonOlder
|
2020-08-11 15:59:07 +01:00
|
|
|
, six, pytestCheckHook, pytest-benchmark, numpy, arrow, ruamel_yaml
|
2018-09-12 02:18:37 +01:00
|
|
|
}:
|
2017-10-29 13:32:12 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2018-09-12 02:18:37 +01:00
|
|
|
pname = "construct";
|
2020-08-11 15:59:07 +01:00
|
|
|
version = "2.10.56";
|
2017-10-29 13:32:12 +00:00
|
|
|
|
2020-08-11 15:59:07 +01:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
# no tests in PyPI tarball
|
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}";
|
2020-08-11 15:59:07 +01:00
|
|
|
sha256 = "1j4mqwyxkbdcsnnk5bbdcljv855w4fglaqc94q1xdzm8kgjxk4mr";
|
2017-10-29 13:32:12 +00:00
|
|
|
};
|
|
|
|
|
2020-08-11 15:59:07 +01:00
|
|
|
checkInputs = [ pytestCheckHook pytest-benchmark numpy arrow ruamel_yaml ];
|
2018-03-10 22:36:00 +00:00
|
|
|
|
2021-01-24 00:29:22 +00:00
|
|
|
disabledTests = lib.optionals stdenv.isDarwin [ "test_multiprocessing" ];
|
2020-08-14 05:20:00 +01:00
|
|
|
|
2020-08-11 15:59:07 +01:00
|
|
|
pytestFlagsArray = [ "--benchmark-disable" ];
|
2017-10-29 13:32:12 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-10-29 13:32:12 +00:00
|
|
|
description = "Powerful declarative parser (and builder) for binary data";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://construct.readthedocs.org/";
|
2017-10-29 13:32:12 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ bjornfor ];
|
|
|
|
};
|
|
|
|
}
|