File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed
Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments