mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
Merge pull request #277417 from bcdarwin/pylibjpeg
python311Packages.pylibjpeg: init at 1.4.0
This commit is contained in:
commit
a0bb55fa5e
69
pkgs/development/python-modules/pylibjpeg/default.nix
Normal file
69
pkgs/development/python-modules/pylibjpeg/default.nix
Normal file
@ -0,0 +1,69 @@
|
||||
{ stdenv
|
||||
, lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pythonOlder
|
||||
, pytestCheckHook
|
||||
, setuptools
|
||||
, numpy
|
||||
, pydicom
|
||||
, pylibjpeg-libjpeg
|
||||
}:
|
||||
|
||||
let
|
||||
pylibjpeg-data = buildPythonPackage rec {
|
||||
pname = "pylibjpeg-data";
|
||||
version = "1.0.0dev0";
|
||||
pyproject = true;
|
||||
|
||||
nativeBuildInputs = [ setuptools ];
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pydicom";
|
||||
repo = "pylibjpeg-data";
|
||||
rev = "2ab4b8a65b070656eca2582bd23197a3d01cdccd";
|
||||
hash = "sha256-cFE1XjrqyGqwHCYGRucXK+q4k7ftUIbYwBw4WwIFtEc=";
|
||||
};
|
||||
|
||||
doCheck = false;
|
||||
};
|
||||
in
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pylibjpeg";
|
||||
version = "1.4.0";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pydicom";
|
||||
repo = "pylibjpeg";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-Px1DyYDkKAUdYo+ZxZ1w7TkPzWN++styiFl02iQOvyQ=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ setuptools ];
|
||||
|
||||
propagatedBuildInputs = [ 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 ];
|
||||
# several test failures of form
|
||||
# "pydicom.errors.InvalidDicomError: File is missing DICOM File Meta Information header or the 'DICM' prefix is missing from the header. ..."
|
||||
broken = stdenv.isDarwin;
|
||||
};
|
||||
}
|
@ -10604,6 +10604,8 @@ self: super: with self; {
|
||||
inherit (pkgs) libusb1;
|
||||
};
|
||||
|
||||
pylibjpeg = callPackage ../development/python-modules/pylibjpeg { };
|
||||
|
||||
pylibjpeg-libjpeg = callPackage ../development/python-modules/pylibjpeg-libjpeg { };
|
||||
|
||||
pyliblo = callPackage ../development/python-modules/pyliblo { };
|
||||
|
Loading…
Reference in New Issue
Block a user