From 3ba66059e38c5e2230c1b37e4dca4092cb20da7d Mon Sep 17 00:00:00 2001 From: Ethan Carter Edwards Date: Mon, 30 Jun 2025 12:30:48 -0400 Subject: [PATCH] python3Packages.ar: init at 1.0.0 Signed-off-by: Ethan Carter Edwards --- .../development/python-modules/ar/default.nix | 49 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 51 insertions(+) create mode 100644 pkgs/development/python-modules/ar/default.nix diff --git a/pkgs/development/python-modules/ar/default.nix b/pkgs/development/python-modules/ar/default.nix new file mode 100644 index 000000000000..50b9cb39874f --- /dev/null +++ b/pkgs/development/python-modules/ar/default.nix @@ -0,0 +1,49 @@ +{ + 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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 7291fcd58710..b5ee91d70e2b 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -829,6 +829,8 @@ self: super: with self; { aqualogic = callPackage ../development/python-modules/aqualogic { }; + ar = callPackage ../development/python-modules/ar { }; + arabic-reshaper = callPackage ../development/python-modules/arabic-reshaper { }; aranet4 = callPackage ../development/python-modules/aranet4 { };