1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 hatchling, 6 pytestCheckHook, 7}: 8 9buildPythonPackage rec { 10 pname = "dahlia"; 11 version = "3.1.0"; 12 pyproject = true; 13 14 src = fetchFromGitHub { 15 owner = "dahlia-lib"; 16 repo = "dahlia"; 17 tag = version; 18 hash = "sha256-489wI0SoC6EU9lC2ISYsLOJUC8g+kLA7UpOrDiBCBmo="; 19 }; 20 21 build-system = [ hatchling ]; 22 pythonImportsCheck = [ "dahlia" ]; 23 24 nativeCheckInputs = [ pytestCheckHook ]; 25 26 meta = { 27 changelog = "https://github.com/dahlia-lib/dahlia/blob/${src.tag}/CHANGELOG.md"; 28 description = "Simple text formatting package, inspired by the game Minecraft"; 29 license = lib.licenses.mit; 30 homepage = "https://github.com/dahlia-lib/dahlia"; 31 maintainers = with lib.maintainers; [ sigmanificient ]; 32 mainProgram = "dahlia"; 33 }; 34}