3
0
Fork 0
forked from mirrors/nixpkgs

python3Packages.lzallright: init at 0.2.3

This commit is contained in:
László Vaskó 2023-05-22 21:39:32 +02:00
parent ff5902803f
commit 0479d24b0e
3 changed files with 63 additions and 0 deletions

View file

@ -0,0 +1,46 @@
{ lib
, buildPythonPackage
, callPackage
, fetchFromGitHub
, rustPlatform
}:
buildPythonPackage rec {
pname = "lzallright";
version = "0.2.3";
src = fetchFromGitHub {
owner = "vlaci";
repo = pname;
rev = "v${version}";
hash = "sha256-Zzif6WtecgAkNmml0kt0Z+Ewx0L30ahr+kwzYR5aUAM=";
};
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
name = "${pname}-${version}";
hash = "sha256-+pV9q2QM6qFA1a5E10OAsE7KJEUsTiEiU1KqO4/2rFw=";
};
format = "pyproject";
nativeBuildInputs = with rustPlatform; [ cargoSetupHook maturinBuildHook ];
pythonImportsCheck = [ "lzallright" ];
doCheck = false;
passthru.tests = {
pytest = callPackage ./tests.nix { };
};
meta = with lib; {
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 = licenses.mit;
maintainers = with maintainers; [ vlaci ];
};
}

View file

@ -0,0 +1,15 @@
{ lzallright, buildPythonPackage, pytestCheckHook }:
buildPythonPackage {
inherit (lzallright) version src;
pname = "lzallright-tests";
format = "other";
dontBuild = true;
dontInstall = true;
nativeCheckInputs = [
lzallright
pytestCheckHook
];
}

View file

@ -5969,6 +5969,8 @@ self: super: with self; {
lz4 = callPackage ../development/python-modules/lz4 { };
lzallright = callPackage ../development/python-modules/lzallright { };
lzstring = callPackage ../development/python-modules/lzstring { };
m2crypto = callPackage ../development/python-modules/m2crypto { };