Files
nixpkgs/pkgs/development/python-modules/construct/default.nix
T

32 lines
893 B
Nix
Raw Normal View History

2020-08-11 16:59:07 +02:00
{ stdenv, buildPythonPackage, fetchFromGitHub, pythonOlder
, six, pytestCheckHook, pytest-benchmark, numpy, arrow, ruamel_yaml
2018-09-12 03:18:37 +02:00
}:
buildPythonPackage rec {
2018-09-12 03:18:37 +02:00
pname = "construct";
2020-08-11 16:59:07 +02:00
version = "2.10.56";
2020-08-11 16:59:07 +02:00
disabled = pythonOlder "3.6";
# no tests in PyPI tarball
src = fetchFromGitHub {
2018-09-12 03:18:37 +02:00
owner = pname;
repo = pname;
rev = "v${version}";
2020-08-11 16:59:07 +02:00
sha256 = "1j4mqwyxkbdcsnnk5bbdcljv855w4fglaqc94q1xdzm8kgjxk4mr";
};
2020-08-11 16:59:07 +02:00
checkInputs = [ pytestCheckHook pytest-benchmark numpy arrow ruamel_yaml ];
disabledTests = stdenv.lib.optionals stdenv.isDarwin [ "test_multiprocessing" ];
2020-08-11 16:59:07 +02:00
pytestFlagsArray = [ "--benchmark-disable" ];
meta = with stdenv.lib; {
description = "Powerful declarative parser (and builder) for binary data";
homepage = "https://construct.readthedocs.org/";
license = licenses.mit;
maintainers = with maintainers; [ bjornfor ];
};
}