Merge pull request #171432 from thiagokokada/bump-hy-and-unify
python3Packages.hy: 1.0a3 -> 1.0a4; hy: replace it with python3Packages.hy; hyrule: init at 0.1main
commit
bfd06fd04d
@ -1,40 +0,0 @@ |
|||||||
{ lib |
|
||||||
, python3Packages |
|
||||||
, hyDefinedPythonPackages /* Packages like with python.withPackages */ |
|
||||||
, ... |
|
||||||
}: |
|
||||||
python3Packages.buildPythonApplication rec { |
|
||||||
pname = "hy"; |
|
||||||
version = "1.0a1"; |
|
||||||
|
|
||||||
src = python3Packages.fetchPypi { |
|
||||||
inherit pname version; |
|
||||||
sha256 = "sha256-lCrbvbkeutSNmvvn/eHpTnJwPb5aEH7hWTXYSE+AJmU="; |
|
||||||
}; |
|
||||||
|
|
||||||
checkInputs = with python3Packages; [ flake8 pytest ]; |
|
||||||
|
|
||||||
propagatedBuildInputs = with python3Packages; [ |
|
||||||
appdirs |
|
||||||
astor |
|
||||||
clint |
|
||||||
colorama |
|
||||||
fastentrypoints |
|
||||||
funcparserlib |
|
||||||
rply |
|
||||||
pygments |
|
||||||
] ++ (hyDefinedPythonPackages python3Packages); |
|
||||||
|
|
||||||
# Hy does not include tests in the source distribution from PyPI, so only test executable. |
|
||||||
checkPhase = '' |
|
||||||
$out/bin/hy --help > /dev/null |
|
||||||
''; |
|
||||||
|
|
||||||
meta = with lib; { |
|
||||||
description = "A LISP dialect embedded in Python"; |
|
||||||
homepage = "https://hylang.org/"; |
|
||||||
license = licenses.mit; |
|
||||||
maintainers = with maintainers; [ nixy mazurel ]; |
|
||||||
platforms = platforms.all; |
|
||||||
}; |
|
||||||
} |
|
@ -1,15 +0,0 @@ |
|||||||
{ lib |
|
||||||
, callPackage |
|
||||||
, hyDefinedPythonPackages ? python-packages: [] /* Packages like with python.withPackages */ |
|
||||||
}: |
|
||||||
let |
|
||||||
withPackages = ( |
|
||||||
python-packages: callPackage ./builder.nix { |
|
||||||
hyDefinedPythonPackages = python-packages; |
|
||||||
} |
|
||||||
); |
|
||||||
in |
|
||||||
(withPackages hyDefinedPythonPackages) // { |
|
||||||
# Export withPackages function for hy customization |
|
||||||
inherit withPackages; |
|
||||||
} |
|
@ -0,0 +1,43 @@ |
|||||||
|
{ lib |
||||||
|
, buildPythonPackage |
||||||
|
, fetchFromGitHub |
||||||
|
, hy |
||||||
|
, pytestCheckHook |
||||||
|
, pythonOlder |
||||||
|
}: |
||||||
|
|
||||||
|
buildPythonPackage rec { |
||||||
|
pname = "hyrule"; |
||||||
|
version = "0.1"; |
||||||
|
format = "setuptools"; |
||||||
|
|
||||||
|
disabled = pythonOlder "3.7"; |
||||||
|
|
||||||
|
src = fetchFromGitHub { |
||||||
|
owner = "hylang"; |
||||||
|
repo = pname; |
||||||
|
rev = version; |
||||||
|
sha256 = "sha256-sqS5vOcbln+Vfv/Ji/8rJ4GTQpXIuhgf+MukjV0Kkuw="; |
||||||
|
}; |
||||||
|
|
||||||
|
propagatedBuildInputs = [ |
||||||
|
hy |
||||||
|
]; |
||||||
|
|
||||||
|
checkInputs = [ |
||||||
|
pytestCheckHook |
||||||
|
]; |
||||||
|
|
||||||
|
# Some tests depends on hy on PATH |
||||||
|
preCheck = "PATH=${hy}/bin:$PATH"; |
||||||
|
|
||||||
|
pythonImportsCheck = [ "hyrule" ]; |
||||||
|
|
||||||
|
meta = with lib; { |
||||||
|
description = "Hyrule is a utility library for the Hy programming language"; |
||||||
|
homepage = "https://github.com/hylang/hyrule"; |
||||||
|
changelog = "https://github.com/hylang/hylure/releases/tag/${version}"; |
||||||
|
license = licenses.mit; |
||||||
|
maintainers = with maintainers; [ thiagokokada ]; |
||||||
|
}; |
||||||
|
} |
Loading…
Reference in new issue