mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 00:24:18 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
41 lines
772 B
Nix
41 lines
772 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
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
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;
|
|
};
|
|
}
|