Ethan Carter Edwards 3ba66059e3
python3Packages.ar: init at 1.0.0
Signed-off-by: Ethan Carter Edwards <ethan@ethancedwards.com>
2025-07-02 11:38:44 -04:00

50 lines
908 B
Nix

{
lib,
stdenv,
buildPythonPackage,
fetchFromGitHub,
hatchling,
hatch-vcs,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "ar";
version = "1.0.0";
pyproject = true;
src = fetchFromGitHub {
owner = "vidstige";
repo = "ar";
tag = "v${version}";
hash = "sha256-azbqlSO5YE6zMrDoVNLDyGeed5H4mSyNEE02AmoZIDs=";
};
build-system = [
hatchling
];
dependencies = [
hatch-vcs
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "ar" ];
disabledTests = lib.optionals stdenv.isDarwin [
"test_list"
"test_read_content"
"test_read_binary"
"test_read_content_ext"
"test_read_binary_ext"
];
meta = {
description = "Implementation of the ar archive format";
homepage = "https://github.com/vidstige/ar";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ ethancedwards8 ];
};
}