Something went wrong. Try again.
lol
Something went wrong. Try again.
1.2 kB · 53 lines
Nix
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354{ lib, stdenv, buildPythonPackage, callPackage, fetchFromGitHub, rustPlatform, libiconv,}:
buildPythonPackage (finalAttrs: { pname = "lzallright"; version = "0.2.6";
src = fetchFromGitHub { owner = "vlaci"; repo = "lzallright"; rev = "v${finalAttrs.version}"; hash = "sha256-bnGnx+CKcneBWd5tpYWxEPp5f3hvGxM+8QcD2NKX4Tw="; };
cargoDeps = rustPlatform.fetchCargoVendor { inherit (finalAttrs) pname version src; hash = "sha256-RxR1EFssGCp7etTdh56LSEfDQsx8uPrQTVqTsDVvkHo="; };
pyproject = true;
nativeBuildInputs = with rustPlatform; [ cargoSetupHook maturinBuildHook ];
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ libiconv ];
pythonImportsCheck = [ "lzallright" ];
doCheck = false;
passthru.tests = { pytest = callPackage ./tests.nix { }; };
meta = { description = '' A Python 3.8+ binding for lzokay library which is an MIT licensed a minimal, C++14 implementation of the LZO compression format. ''; homepage = "https://github.com/vlaci/lzallright"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ vlaci ]; };})