python312Packages.aiotarfile: use fetchCargoVendor and refactor (#386744)
This commit is contained in:
-1283
File diff suppressed because it is too large
Load Diff
@@ -2,7 +2,6 @@
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
nix-update-script,
|
||||
|
||||
buildPythonPackage,
|
||||
unittestCheckHook,
|
||||
pythonOlder,
|
||||
@@ -24,11 +23,10 @@ buildPythonPackage rec {
|
||||
tag = "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=";
|
||||
cargoDeps = rustPlatform.fetchCargoVendor {
|
||||
inherit pname version src;
|
||||
hash = "sha256-e3NbFlBQu9QkGnIwqy2OmlQFVHjlfpMVRFWD2ADGGSc=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
@@ -39,15 +37,18 @@ buildPythonPackage rec {
|
||||
];
|
||||
|
||||
nativeCheckInputs = [ unittestCheckHook ];
|
||||
|
||||
unittestFlagsArray = [ "tests/" ]; # Not sure why it isn't autodiscovered
|
||||
|
||||
pythonImportsCheck = [ "aiotarfile" ];
|
||||
|
||||
meta = with lib; {
|
||||
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 = licenses.mit;
|
||||
maintainers = with maintainers; [ nicoo ];
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ nicoo ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user