Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / hyrule / default.nix
blob241306c895d2f8845288911ca4c721216990d2a8
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , hy
5 , pytestCheckHook
6 , pythonOlder
7 }:
9 buildPythonPackage rec {
10   pname = "hyrule";
11   version = "0.5.0";
12   format = "setuptools";
14   disabled = pythonOlder "3.7";
16   src = fetchFromGitHub {
17     owner = "hylang";
18     repo = pname;
19     rev = "refs/tags/${version}";
20     hash = "sha256-MARpQFEypTJ4KpojVRxcHYvo6e6Gvk4B6tnrViV6QmY=";
21   };
23   propagatedBuildInputs = [
24     hy
25   ];
27   nativeCheckInputs = [
28     pytestCheckHook
29   ];
31   # Some tests depends on hy on PATH
32   preCheck = "PATH=${hy}/bin:$PATH";
34   pythonImportsCheck = [ "hyrule" ];
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   };