Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263{ lib, buildPythonPackage, fetchPypi, pytestCheckHook, pkg-config, setuptools, libjpeg, libpng, libtiff, libwebp, numpy,}:
buildPythonPackage rec { pname = "imread"; version = "0.7.6"; pyproject = true;
src = fetchPypi { inherit pname version; hash = "sha256-ULPXCJyGJQTCKyVu9R/kWFGzRhbbFMDr/FU2AByZYBU="; };
build-system = [ setuptools ];
nativeBuildInputs = [ pkg-config ];
buildInputs = [ libjpeg libpng libtiff libwebp ];
dependencies = [ numpy ];
nativeCheckInputs = [ pytestCheckHook ];
pytestFlags = [ # verbose build outputs needed to debug hard-to-reproduce hydra failures "-v" "--pyargs" "imread" ];
pythonImportsCheck = [ "imread" ];
preCheck = '' cd $TMPDIR export HOME=$TMPDIR '';
meta = { description = "Python package to load images as numpy arrays"; homepage = "https://imread.readthedocs.io/"; changelog = "https://github.com/luispedro/imread/blob/v${version}/ChangeLog"; maintainers = with lib.maintainers; [ luispedro ]; license = lib.licenses.mit; platforms = lib.platforms.unix; };}