Unverified Commit 276e86d8 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

python311Packages.hy: refactor

parent 532cecac
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -7,19 +7,20 @@
, pytestCheckHook
, python
, pythonOlder
, setuptools
, testers
}:

buildPythonPackage rec {
  pname = "hy";
  version = "0.29.0";
  format = "setuptools";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "hylang";
    repo = pname;
    repo = "hy";
    rev = "refs/tags/${version}";
    hash = "sha256-8b2V78mwzSThmVl1SfMGBw8VSpE5rCuucnIyD0nq5To=";
  };
@@ -27,7 +28,11 @@ buildPythonPackage rec {
  # https://github.com/hylang/hy/blob/1.0a4/get_version.py#L9-L10
  HY_VERSION = version;

  propagatedBuildInputs = [
  build-system = [
    setuptools
  ];

  dependencies = [
    funcparserlib
  ] ++
  lib.optionals (pythonOlder "3.9") [