Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 hy, 6 pytestCheckHook, 7 pythonOlder, 8 setuptools, 9}: 10 11buildPythonPackage rec { 12 pname = "hyrule"; 13 version = "0.6.0"; 14 pyproject = true; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "hylang"; 20 repo = "hyrule"; 21 rev = "refs/tags/${version}"; 22 hash = "sha256-pmJhhOpNxVEUH8YwBUKSywYgYu43oLSmpWJM4HXGMiI="; 23 }; 24 25 build-system = [ setuptools ]; 26 27 propagatedBuildInputs = [ hy ]; 28 29 nativeCheckInputs = [ pytestCheckHook ]; 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 = "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}