Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pythonOlder 5, pytestCheckHook 6, cython 7, numpy 8}: 9 10buildPythonPackage rec { 11 pname = "pylibjpeg-libjpeg"; 12 version = "1.3.4"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "pydicom"; 19 repo = pname; 20 rev = "refs/tags/v${version}"; 21 hash = "sha256-VmqeoMU8riLpWyC+yKqq56TkruxOie6pjbg+ozivpBk="; 22 fetchSubmodules = true; 23 }; 24 25 nativeBuildInputs = [ 26 cython 27 ]; 28 29 propagatedBuildInputs = [ 30 numpy 31 ]; 32 33 nativeCheckInputs = [ 34 pytestCheckHook 35 ]; 36 37 doCheck = false; # tests try to import 'libjpeg.data', which errors 38 39 pythonImportsCheck = [ 40 "libjpeg" 41 ]; 42 43 meta = with lib; { 44 description = "A JPEG, JPEG-LS and JPEG XT plugin for pylibjpeg"; 45 homepage = "https://github.com/pydicom/pylibjpeg-libjpeg"; 46 changelog = "https://github.com/pydicom/pylibjpeg-libjpeg/releases/tag/v${version}"; 47 license = licenses.gpl3Only; 48 maintainers = with maintainers; [ bcdarwin ]; 49 }; 50}