1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, hy
5, pytestCheckHook
6, pythonOlder
7}:
8
9buildPythonPackage rec {
10 pname = "hyrule";
11 version = "0.4.0";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchFromGitHub {
17 owner = "hylang";
18 repo = pname;
19 rev = "refs/tags/${version}";
20 hash = "sha256-D5d/WwGSbEmSeyVBTIpGOqi+I6PkRdo8dhDaCeeOW4M=";
21 };
22
23 propagatedBuildInputs = [
24 hy
25 ];
26
27 nativeCheckInputs = [
28 pytestCheckHook
29 ];
30
31 # Some tests depends on hy on PATH
32 preCheck = "PATH=${hy}/bin:$PATH";
33
34 pythonImportsCheck = [ "hyrule" ];
35
36 meta = with lib; {
37 description = "Hyrule is a utility library for the Hy programming language";
38 homepage = "https://github.com/hylang/hyrule";
39 changelog = "https://github.com/hylang/hylure/releases/tag/${version}";
40 license = licenses.mit;
41 maintainers = with maintainers; [ thiagokokada ];
42 };
43}