mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
49 lines
1010 B
Nix
49 lines
1010 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pythonOlder,
|
|
pytestCheckHook,
|
|
flit-core,
|
|
numpy,
|
|
pydicom,
|
|
pylibjpeg-data,
|
|
pylibjpeg-libjpeg,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pylibjpeg";
|
|
version = "2.0.1";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pydicom";
|
|
repo = "pylibjpeg";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-MA1A/hTIx95MYZ2LGOifnHn77wbv0ydAgQSzNZRykVg=";
|
|
};
|
|
|
|
build-system = [ flit-core ];
|
|
|
|
dependencies = [ numpy ];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
pydicom
|
|
pylibjpeg-data
|
|
pylibjpeg-libjpeg
|
|
];
|
|
|
|
pythonImportsCheck = [ "pylibjpeg" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python framework for decoding JPEG images, with a focus on supporting Pydicom";
|
|
homepage = "https://github.com/pydicom/pylibjpeg";
|
|
changelog = "https://github.com/pydicom/pylibjpeg/releases/tag/v${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ bcdarwin ];
|
|
};
|
|
}
|