nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 40 lines 826 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 hy, 6 pytestCheckHook, 7 setuptools, 8}: 9 10buildPythonPackage rec { 11 pname = "hyrule"; 12 version = "1.0.1"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "hylang"; 17 repo = "hyrule"; 18 tag = version; 19 hash = "sha256-nyB2vsXR1yiSzp1r/UCCQwM5FfIa4P8obTcWSu7JFoA="; 20 }; 21 22 build-system = [ setuptools ]; 23 24 dependencies = [ hy ]; 25 26 nativeCheckInputs = [ pytestCheckHook ]; 27 28 # Some tests depends on hy on PATH 29 preCheck = "PATH=${hy}/bin:$PATH"; 30 31 pythonImportsCheck = [ "hyrule" ]; 32 33 meta = { 34 description = "Utility library for the Hy programming language"; 35 homepage = "https://github.com/hylang/hyrule"; 36 changelog = "https://github.com/hylang/hyrule/releases/tag/${src.tag}"; 37 license = lib.licenses.mit; 38 maintainers = [ ]; 39 }; 40}