Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.2 kB · 54 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455{ 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 ]; };}