1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 ffmpeg-python, 6 numpy, 7 pillow, 8 pypaInstallHook, 9 pytestCheckHook, 10 pythonOlder, 11 requests, 12 setuptoolsBuildHook, 13}: 14 15buildPythonPackage rec { 16 pname = "image-go-nord"; 17 version = "1.2.0"; 18 pyproject = false; 19 20 disabled = pythonOlder "3.7"; 21 22 src = fetchFromGitHub { 23 owner = "Schrodinger-Hat"; 24 repo = "ImageGoNord-pip"; 25 tag = "v${version}"; 26 hash = "sha256-rPp4QrkbDhrdpfynRUYgxpNgUNxU+3h54Ea7s/+u1kI="; 27 }; 28 29 nativeBuildInputs = [ 30 pypaInstallHook 31 setuptoolsBuildHook 32 ]; 33 34 dependencies = [ 35 ffmpeg-python 36 numpy 37 pillow 38 requests 39 ]; 40 41 nativeCheckInputs = [ pytestCheckHook ]; 42 43 pythonImportsCheck = [ "ImageGoNord" ]; 44 45 meta = { 46 description = "Tool that can convert rgb images to nordtheme palette"; 47 homepage = "https://github.com/Schrodinger-Hat/ImageGoNord-pip"; 48 changelog = "https://github.com/Schroedinger-Hat/ImageGoNord-pip/releases/tag/v${version}"; 49 license = lib.licenses.mit; 50 maintainers = with lib.maintainers; [ kranzes ]; 51 }; 52}