1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 6 matplotlib, 7 numpy, 8 pillow, 9 pytestCheckHook, 10 setuptools, 11 tensorflow, 12 torch, 13}: 14 15buildPythonPackage rec { 16 pname = "imgcat"; 17 version = "0.6.0"; 18 pyproject = true; 19 20 src = fetchFromGitHub { 21 owner = "wookayin"; 22 repo = "python-imgcat"; 23 tag = "v${version}"; 24 hash = "sha256-FsLa8Z4aKuj3E5twC2LTXZDM0apmyYfgeyZQu/wLdAo="; 25 }; 26 27 postPatch = '' 28 substituteInPlace setup.py \ 29 --replace-fail "'pytest-runner<5.0'" "" 30 ''; 31 32 build-system = [ setuptools ]; 33 34 nativeCheckInputs = [ 35 matplotlib 36 numpy 37 pillow 38 pytestCheckHook 39 tensorflow 40 torch 41 ]; 42 43 pythonImportsCheck = [ "imgcat" ]; 44 45 meta = { 46 description = "Imgcat in Python"; 47 homepage = "https://github.com/wookayin/python-imgcat"; 48 changelog = "https://github.com/wookayin/python-imgcat/releases/tag/v${version}"; 49 license = lib.licenses.mit; 50 maintainers = with lib.maintainers; [ fab ]; 51 }; 52}