Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at gcc-offload 40 lines 865 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 = "0.7.0"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "hylang"; 17 repo = "hyrule"; 18 rev = "refs/tags/${version}"; 19 hash = "sha256-w1Q2w/P1bDt/F1+zTkUFi5PxycXXE3p0qadfBcyWElg="; 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/hylure/releases/tag/${version}"; 37 license = licenses.mit; 38 maintainers = with maintainers; [ ]; 39 }; 40}