Files
nixpkgs/pkgs/development/python-modules/aiotarfile/default.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

55 lines
1.2 KiB
Nix

{
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";
tag = "v${version}";
hash = "sha256-DslG+XxIYb04I3B7m0fmRmE3hFCczF039QhSVdHGPL8=";
};
cargoDeps = rustPlatform.fetchCargoVendor {
inherit pname version src;
hash = "sha256-e3NbFlBQu9QkGnIwqy2OmlQFVHjlfpMVRFWD2ADGGSc=";
};
nativeBuildInputs = [
cargo
rustPlatform.cargoSetupHook
rustPlatform.maturinBuildHook
rustc
];
nativeCheckInputs = [ unittestCheckHook ];
unittestFlagsArray = [ "tests/" ]; # Not sure why it isn't autodiscovered
pythonImportsCheck = [ "aiotarfile" ];
passthru.updateScript = nix-update-script { };
meta = {
description = "Stream-based, asynchronous tarball processing";
homepage = "https://github.com/rhelmot/aiotarfile";
changelog = "https://github.com/rhelmot/aiotarfile/commits/v{version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ nicoo ];
};
}