1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 karton-core, 6 unittestCheckHook, 7 pythonOlder, 8}: 9 10buildPythonPackage rec { 11 pname = "karton-asciimagic"; 12 version = "1.2.0"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "CERT-Polska"; 19 repo = "karton-asciimagic"; 20 tag = "v${version}"; 21 hash = "sha256-sY5ik9efzLBa6Fbh17Vh4q7PlwOGYjuodU9yvp/8E3k="; 22 }; 23 24 propagatedBuildInputs = [ karton-core ]; 25 26 nativeCheckInputs = [ unittestCheckHook ]; 27 28 pythonImportsCheck = [ "karton.asciimagic" ]; 29 30 meta = with lib; { 31 description = "Decoders for ascii-encoded executables for the Karton framework"; 32 mainProgram = "karton-asciimagic"; 33 homepage = "https://github.com/CERT-Polska/karton-asciimagic"; 34 changelog = "https://github.com/CERT-Polska/karton-asciimagic/releases/tag/v${version}"; 35 license = with licenses; [ bsd3 ]; 36 maintainers = with maintainers; [ fab ]; 37 }; 38}