nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 45 lines 924 B view raw
1{ 2 lib, 3 python3Packages, 4 fetchFromGitHub, 5 deterministic-uname, 6 addBinToPathHook, 7}: 8 9python3Packages.buildPythonApplication rec { 10 pname = "zxpy"; 11 version = "1.6.4"; 12 pyproject = true; 13 14 src = fetchFromGitHub { 15 owner = "tusharsadhwani"; 16 repo = "zxpy"; 17 tag = version; 18 hash = "sha256-/VITHN517lPUmhLYgJHBYYvvlJdGg2Hhnwk47Mp9uc0="; 19 }; 20 21 build-system = with python3Packages; [ 22 setuptools 23 ]; 24 25 nativeCheckInputs = 26 with python3Packages; 27 [ 28 deterministic-uname 29 pytestCheckHook 30 ] 31 ++ [ 32 addBinToPathHook 33 ]; 34 35 pythonImportsCheck = [ "zx" ]; 36 37 meta = { 38 description = "Shell scripts made simple"; 39 homepage = "https://github.com/tusharsadhwani/zxpy"; 40 changelog = "https://github.com/tusharsadhwani/zxpy/releases/tag/${version}"; 41 license = lib.licenses.mit; 42 maintainers = with lib.maintainers; [ figsoda ]; 43 mainProgram = "zxpy"; 44 }; 45}