Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at gcc-offload 48 lines 1.0 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pythonOlder, 6 pytestCheckHook, 7 flit-core, 8 numpy, 9 pydicom, 10 pylibjpeg-data, 11 pylibjpeg-libjpeg, 12}: 13 14buildPythonPackage rec { 15 pname = "pylibjpeg"; 16 version = "2.0.1"; 17 pyproject = true; 18 19 disabled = pythonOlder "3.7"; 20 21 src = fetchFromGitHub { 22 owner = "pydicom"; 23 repo = "pylibjpeg"; 24 rev = "refs/tags/v${version}"; 25 hash = "sha256-MA1A/hTIx95MYZ2LGOifnHn77wbv0ydAgQSzNZRykVg="; 26 }; 27 28 build-system = [ flit-core ]; 29 30 dependencies = [ numpy ]; 31 32 nativeCheckInputs = [ 33 pytestCheckHook 34 pydicom 35 pylibjpeg-data 36 pylibjpeg-libjpeg 37 ]; 38 39 pythonImportsCheck = [ "pylibjpeg" ]; 40 41 meta = with lib; { 42 description = "Python framework for decoding JPEG images, with a focus on supporting Pydicom"; 43 homepage = "https://github.com/pydicom/pylibjpeg"; 44 changelog = "https://github.com/pydicom/pylibjpeg/releases/tag/v${version}"; 45 license = licenses.mit; 46 maintainers = with maintainers; [ bcdarwin ]; 47 }; 48}