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