nixpkgs/pkgs/development/python-modules/construct/default.nix
Zhaofeng Li c2fb4222a8 pythonPackages.construct: Remove pytest-benchmark check dependency
No need to pull it in at all when the benchmarks are skipped anyways.
2021-12-11 09:57:33 -08:00

36 lines
978 B
Nix

{ lib, stdenv, buildPythonPackage, fetchFromGitHub, pythonOlder
, pytestCheckHook, pytest-benchmark, numpy, arrow, ruamel-yaml
, lz4, cloudpickle
}:
buildPythonPackage rec {
pname = "construct";
version = "2.10.67";
disabled = pythonOlder "3.6";
# no tests in PyPI tarball
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
sha256 = "1nciwim745qk41l1ck4chx3vxpfr6cq4k3a4i7vfnnrd3s6szzsw";
};
# not an explicit dependency, but it's imported by an entrypoint
propagatedBuildInputs = [
lz4
];
checkInputs = [ pytestCheckHook numpy arrow ruamel-yaml cloudpickle ];
disabledTests = [ "test_benchmarks" ] ++ lib.optionals stdenv.isDarwin [ "test_multiprocessing" ];
meta = with lib; {
description = "Powerful declarative parser (and builder) for binary data";
homepage = "https://construct.readthedocs.org/";
license = licenses.mit;
maintainers = with maintainers; [ bjornfor ];
};
}