pythonPackages.construct: add python2-compatible expression
This commit is contained in:
parent
dc7fd28f2a
commit
e53717ca11
29
pkgs/development/python-modules/construct/2.10.54.nix
Normal file
29
pkgs/development/python-modules/construct/2.10.54.nix
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
{ lib, stdenv, buildPythonPackage, fetchFromGitHub, pythonOlder
|
||||||
|
, six, pytestCheckHook, pytest-benchmark, enum34, numpy, arrow, ruamel_yaml
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "construct";
|
||||||
|
version = "2.10.54";
|
||||||
|
|
||||||
|
# no tests in PyPI tarball
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = pname;
|
||||||
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "1mqspsn6bf3ibvih1zna2glkg8iw7vy5zg9gzg0d1m8zcndk2c48";
|
||||||
|
};
|
||||||
|
|
||||||
|
checkInputs = [ pytestCheckHook pytest-benchmark enum34 numpy arrow ruamel_yaml ];
|
||||||
|
|
||||||
|
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 ];
|
||||||
|
};
|
||||||
|
}
|
@ -1462,7 +1462,10 @@ in {
|
|||||||
|
|
||||||
constantly = callPackage ../development/python-modules/constantly { };
|
constantly = callPackage ../development/python-modules/constantly { };
|
||||||
|
|
||||||
construct = callPackage ../development/python-modules/construct { };
|
construct = if isPy27 then
|
||||||
|
callPackage ../development/python-modules/construct/2.10.54.nix { }
|
||||||
|
else
|
||||||
|
callPackage ../development/python-modules/construct { };
|
||||||
|
|
||||||
consul = callPackage ../development/python-modules/consul { };
|
consul = callPackage ../development/python-modules/consul { };
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user