9405df4a82
GitOrigin-RevId: 8e4fe32876ca15e3d5eb3ecd3ca0b224417f5f17
37 lines
1 KiB
Nix
37 lines
1 KiB
Nix
{ lib, stdenv, buildPythonPackage, fetchFromGitHub, pythonOlder
|
|
, six, pytestCheckHook, pytest-benchmark, numpy, arrow, ruamel_yaml
|
|
, lz4, cloudpickle
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "construct";
|
|
version = "2.10.63";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
# no tests in PyPI tarball
|
|
src = fetchFromGitHub {
|
|
owner = pname;
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "0dnj815qdxrn0q6bpwsmkca2jy02gjy6d3amqg4y6gha1kc1mymv";
|
|
};
|
|
|
|
# not an explicit dependency, but it's imported by an entrypoint
|
|
propagatedBuildInputs = [
|
|
lz4
|
|
];
|
|
|
|
checkInputs = [ pytestCheckHook pytest-benchmark numpy arrow ruamel_yaml cloudpickle ];
|
|
|
|
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; [ bjornfor ];
|
|
};
|
|
}
|