at master 850 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 hy, 6 pytestCheckHook, 7 setuptools, 8}: 9 10buildPythonPackage rec { 11 pname = "hyrule"; 12 version = "1.0.0"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "hylang"; 17 repo = "hyrule"; 18 tag = version; 19 hash = "sha256-HSs5YUbhdaOgpBaxXe9LibJN4G3UJvEvEdnYt6ORQBo="; 20 }; 21 22 build-system = [ setuptools ]; 23 24 dependencies = [ hy ]; 25 26 nativeCheckInputs = [ pytestCheckHook ]; 27 28 # Some tests depends on hy on PATH 29 preCheck = "PATH=${hy}/bin:$PATH"; 30 31 pythonImportsCheck = [ "hyrule" ]; 32 33 meta = with lib; { 34 description = "Utility library for the Hy programming language"; 35 homepage = "https://github.com/hylang/hyrule"; 36 changelog = "https://github.com/hylang/hyrule/releases/tag/${src.tag}"; 37 license = licenses.mit; 38 maintainers = with maintainers; [ ]; 39 }; 40}