Skip to content

Commit 11a074f

Browse files
committed
chore(deps): add lzallright dependency in Nix files.
1 parent c245c3c commit 11a074f

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

nix/lzallright/default.nix

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{ lib
2+
, stdenv
3+
, buildPythonPackage
4+
, callPackage
5+
, fetchFromGitHub
6+
, rustPlatform
7+
, libiconv
8+
}:
9+
10+
buildPythonPackage rec {
11+
pname = "lzallright";
12+
version = "0.2.2";
13+
14+
src = fetchFromGitHub {
15+
owner = "vlaci";
16+
repo = pname;
17+
rev = "v${version}";
18+
sha256 = "sha256-MOTIUC/G92tB2ZOp3OzgKq3d9zGN6bfv83vXOK3deFI=";
19+
};
20+
21+
cargoDeps = rustPlatform.fetchCargoTarball {
22+
inherit src;
23+
name = "${pname}-${version}";
24+
hash = "sha256-WSwIKJBtyorKg7hZgxwPd/ORujjyY0x/1R+TBbIxyWQ=";
25+
};
26+
27+
format = "pyproject";
28+
29+
nativeBuildInputs = with rustPlatform; [ cargoSetupHook maturinBuildHook ];
30+
31+
buildInputs = lib.optionals stdenv.isDarwin [ libiconv ];
32+
33+
pythonImportsCheck = [ "lzallright" ];
34+
35+
doCheck = false;
36+
37+
passthru.tests = {
38+
pytest = callPackage ./tests.nix { };
39+
};
40+
41+
}

0 commit comments

Comments
 (0)