Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263{ lib, fetchFromGitHub, buildPythonPackage, pythonOlder, unittestCheckHook, cargo, rustc, rustPlatform, semver,}:
buildPythonPackage rec { pname = "aiotarfile"; version = "0.5.2"; pyproject = true;
src = fetchFromGitHub { owner = "rhelmot"; repo = "aiotarfile"; tag = "v${version}"; hash = "sha256-V88cvVw6ss7iiojhlqDd2frG/gCEH0YKTP0IpgeFASw="; };
cargoDeps = rustPlatform.fetchCargoVendor { inherit pname version src; hash = "sha256-Yf6N615X9ZB+HDp3xehMc3kjKbdsSbIJrqARRXwCRDQ="; };
postPatch = '' patchShebangs release.py ./release.py finalize '';
build-system = [ semver # required for release.py ];
nativeBuildInputs = [ cargo rustPlatform.cargoSetupHook rustPlatform.maturinBuildHook rustc ];
nativeCheckInputs = [ unittestCheckHook ];
unittestFlagsArray = [ "tests/" ]; # Not sure why it isn't autodiscovered
# pyo3-asyncio 0.20 segfaults on the python 3.14 interpreter state. doCheck = pythonOlder "3.14";
pythonImportsCheck = [ "aiotarfile" ];
meta = { description = "Stream-based, asynchronous tarball processing"; homepage = "https://github.com/rhelmot/aiotarfile"; changelog = "https://github.com/rhelmot/aiotarfile/commits/${src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ nicoo ]; };}