Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.6 kB · 71 lines
Nix
at gcc-offload
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172{ lib, astor, buildPythonPackage, fetchFromGitHub, funcparserlib, hy, pytestCheckHook, python, pythonOlder, setuptools, testers,}:
buildPythonPackage rec { pname = "hy"; version = "1.0.0"; pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub { owner = "hylang"; repo = "hy"; rev = "refs/tags/${version}"; hash = "sha256-o6txdC8TOdaILAJP9LDAhJ587p+mw0bUEGLneQQYW9c="; };
# https://github.com/hylang/hy/blob/1.0a4/get_version.py#L9-L10 HY_VERSION = version;
build-system = [ setuptools ];
dependencies = [ funcparserlib ] ++ lib.optionals (pythonOlder "3.9") [ astor ];
nativeCheckInputs = [ pytestCheckHook ];
preCheck = '' # For test_bin_hy export PATH="$out/bin:$PATH" '';
pythonImportsCheck = [ "hy" ];
passthru = { tests.version = testers.testVersion { package = hy; command = "hy -v"; }; # For backwards compatibility with removed pkgs/development/interpreters/hy # Example usage: # hy.withPackages (ps: with ps; [ hyrule requests ]) withPackages = python-packages: (python.withPackages (ps: (python-packages ps) ++ [ ps.hy ])).overrideAttrs (old: { name = "${hy.name}-env"; meta = lib.mergeAttrs (builtins.removeAttrs hy.meta [ "license" ]) { mainProgram = "hy"; }; }); };
meta = with lib; { description = "LISP dialect embedded in Python"; homepage = "https://hylang.org/"; changelog = "https://github.com/hylang/hy/releases/tag/${version}"; license = licenses.mit; maintainers = with maintainers; [ mazurel nixy ]; };}