Files
nixpkgs/pkgs/development/python-modules/lzallright/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

54 lines
1.1 KiB
Nix

{
lib,
stdenv,
buildPythonPackage,
callPackage,
fetchFromGitHub,
rustPlatform,
libiconv,
}:
buildPythonPackage rec {
pname = "lzallright";
version = "0.2.6";
src = fetchFromGitHub {
owner = "vlaci";
repo = "lzallright";
rev = "v${version}";
hash = "sha256-bnGnx+CKcneBWd5tpYWxEPp5f3hvGxM+8QcD2NKX4Tw=";
};
cargoDeps = rustPlatform.fetchCargoVendor {
inherit pname version src;
hash = "sha256-RxR1EFssGCp7etTdh56LSEfDQsx8uPrQTVqTsDVvkHo=";
};
format = "pyproject";
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 ];
};
}