2021-12-06 16:07:01 +00:00
|
|
|
{ lib, stdenv, buildPythonPackage, fetchFromGitHub
|
|
|
|
, pytestCheckHook, pytest-benchmark, enum34, numpy, arrow, ruamel-yaml
|
2021-03-12 07:09:13 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "construct";
|
|
|
|
version = "2.10.54";
|
|
|
|
|
|
|
|
# no tests in PyPI tarball
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1mqspsn6bf3ibvih1zna2glkg8iw7vy5zg9gzg0d1m8zcndk2c48";
|
|
|
|
};
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
checkInputs = [ pytestCheckHook pytest-benchmark enum34 numpy arrow ruamel-yaml ];
|
2021-03-12 07:09:13 +00:00
|
|
|
|
|
|
|
disabledTests = lib.optionals stdenv.isDarwin [ "test_multiprocessing" ];
|
|
|
|
|
|
|
|
pytestFlagsArray = [ "--benchmark-disable" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Powerful declarative parser (and builder) for binary data";
|
|
|
|
homepage = "https://construct.readthedocs.org/";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|