Skip to content

Commit 1dde1b4

Browse files
pavelzwchenrui333
authored andcommitted
pixi-pack 0.3.1 (new formula)
Signed-off-by: Rui Chen <[email protected]>
1 parent a88aa84 commit 1dde1b4

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

Formula/p/pixi-pack.rb

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
class PixiPack < Formula
2+
desc "Pack and unpack conda environments created with pixi"
3+
homepage "https://github.com/quantco/pixi-pack"
4+
url "https://github.com/quantco/pixi-pack/archive/refs/tags/v0.3.1.tar.gz"
5+
sha256 "d0c6eb4d20747a5ea47093dc06e80e15a46ec3fd9c3c1e93ee035480e3b0a75a"
6+
license "BSD-3-Clause"
7+
head "https://github.com/quantco/pixi-pack.git", branch: "main"
8+
9+
depends_on "cmake" => :build
10+
depends_on "pkgconf" => :build
11+
depends_on "rust" => :build
12+
13+
uses_from_macos "bzip2"
14+
15+
on_linux do
16+
depends_on "openssl@3"
17+
end
18+
19+
def install
20+
system "cargo", "install", *std_cargo_args
21+
end
22+
23+
test do
24+
assert_equal "pixi-pack #{version}", shell_output("#{bin}/pixi-pack --version").strip
25+
26+
(testpath/"pixi.lock").write <<~YAML
27+
version: 6
28+
environments:
29+
default:
30+
channels:
31+
- url: https://conda.anaconda.org/conda-forge/
32+
packages:
33+
linux-64:
34+
- conda: https://conda.anaconda.org/conda-forge/linux-64/ca-certificates-2024.8.30-hbcca054_0.conda
35+
packages:
36+
- conda: https://conda.anaconda.org/conda-forge/linux-64/ca-certificates-2024.8.30-hbcca054_0.conda
37+
sha256: afee721baa6d988e27fef1832f68d6f32ac8cc99cdf6015732224c2841a09cea
38+
md5: c27d1c142233b5bc9ca570c6e2e0c244
39+
arch: x86_64
40+
platform: linux
41+
license: ISC
42+
size: 159003
43+
timestamp: 1725018903918
44+
YAML
45+
system bin/"pixi-pack", "pack", "--platform", "linux-64"
46+
assert_path_exists testpath/"environment.tar"
47+
end
48+
end

0 commit comments

Comments
 (0)