mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 21:53:32 +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.
44 lines
898 B
Nix
44 lines
898 B
Nix
{ lib
|
|
, stdenv
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pythonOlder
|
|
, pytestCheckHook
|
|
, cython
|
|
, numpy
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pylibjpeg-libjpeg";
|
|
version = "1.3.3";
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pydicom";
|
|
repo = pname;
|
|
rev = "refs/tags/v.${version}";
|
|
hash = "sha256-fv3zX+P2DWMdxPKsvSPhPCV8cDX3tAMO/h5coMHBHN8=";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
nativeBuildInputs = [ cython];
|
|
|
|
propagatedBuildInputs = [ numpy ];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
doCheck = false; # tests try to import 'libjpeg.data', which errors
|
|
|
|
pythonImportsCheck = [
|
|
"libjpeg"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "A JPEG, JPEG-LS and JPEG XT plugin for pylibjpeg";
|
|
homepage = "https://github.com/pydicom/pylibjpeg-libjpeg";
|
|
license = licenses.gpl3;
|
|
maintainers = with maintainers; [ bcdarwin ];
|
|
};
|
|
}
|