depot/third_party/nixpkgs/pkgs/development/python-modules/imagecodecs-lite/default.nix
Default email 3a4df29a92 Project import generated by Copybara.
GitOrigin-RevId: 3d7435c638baffaa826b85459df0fff47f12317d
2022-06-16 19:23:12 +02:00

40 lines
766 B
Nix

{ stdenv
, lib, fetchPypi, buildPythonPackage
, pytest
, numpy
, cython
}:
buildPythonPackage rec {
pname = "imagecodecs-lite";
version = "2019.12.3";
src = fetchPypi {
inherit pname version;
sha256 = "0s4xb17qd7vimc46rafbjnibj4sf0lnv8cwl22k1h6zb7jhqmlcm";
};
nativeBuildInputs = [
cython
];
checkInputs = [
pytest
];
propagatedBuildInputs = [
numpy
];
checkPhase = ''
pytest
'';
meta = with lib; {
broken = (stdenv.isLinux && stdenv.isAarch64) || stdenv.isDarwin;
description = "Block-oriented, in-memory buffer transformation, compression, and decompression functions";
homepage = "https://www.lfd.uci.edu/~gohlke/";
maintainers = [ maintainers.tbenst ];
license = licenses.bsd3;
};
}