python3.pkgs.aiotarfile: init at 0.5.1 (#332301)

This commit is contained in:
nicoo
2024-12-12 18:16:49 +00:00
committed by GitHub
parent 725f259d1b
commit 793d539b28
3 changed files with 1338 additions and 0 deletions
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,53 @@
{
lib,
fetchFromGitHub,
nix-update-script,
buildPythonPackage,
unittestCheckHook,
pythonOlder,
cargo,
rustc,
rustPlatform,
}:
buildPythonPackage rec {
pname = "aiotarfile";
version = "0.5.1";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "rhelmot";
repo = "aiotarfile";
rev = "refs/tags/v${version}";
hash = "sha256-DslG+XxIYb04I3B7m0fmRmE3hFCczF039QhSVdHGPL8=";
};
passthru.updateScript = nix-update-script { };
cargoDeps = rustPlatform.importCargoLock {
lockFile = ./Cargo.lock;
outputHashes."async-tar-0.4.2" = "sha256-C8M/5YEo3OIfN+654pVTfDm8C8qmKX5qy61NKFt7Jb4=";
};
nativeBuildInputs = [
cargo
rustPlatform.cargoSetupHook
rustPlatform.maturinBuildHook
rustc
];
nativeCheckInputs = [ unittestCheckHook ];
unittestFlagsArray = [ "tests/" ]; # Not sure why it isn't autodiscovered
pythonImportsCheck = [ "aiotarfile" ];
meta = with lib; {
description = "Stream-based, asynchronous tarball processing";
homepage = "https://github.com/rhelmot/aiotarfile";
changelog = "https://github.com/rhelmot/aiotarfile/commits/v{version}";
license = licenses.mit;
maintainers = with maintainers; [ nicoo ];
};
}
+2
View File
@@ -461,6 +461,8 @@ self: super: with self; {
aiotankerkoenig = callPackage ../development/python-modules/aiotankerkoenig { };
aiotarfile = callPackage ../development/python-modules/aiotarfile { };
aiotractive = callPackage ../development/python-modules/aiotractive { };
aiounifi = callPackage ../development/python-modules/aiounifi { };