From 2e9997b1a551760c497fdb05504cbc04ea8e6cff Mon Sep 17 00:00:00 2001 From: Michael Hoang Date: Tue, 24 Feb 2026 22:30:40 +0100 Subject: [PATCH] python3Packages.pycdlib: init at 1.15.0 --- .../python-modules/pycdlib/default.nix | 49 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 51 insertions(+) create mode 100644 pkgs/development/python-modules/pycdlib/default.nix diff --git a/pkgs/development/python-modules/pycdlib/default.nix b/pkgs/development/python-modules/pycdlib/default.nix new file mode 100644 index 000000000000..c70487766e36 --- /dev/null +++ b/pkgs/development/python-modules/pycdlib/default.nix @@ -0,0 +1,49 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + pytestCheckHook, +}: + +buildPythonPackage rec { + pname = "pycdlib"; + version = "1.15.0"; + pyproject = true; + + src = fetchFromGitHub { + owner = "clalancette"; + repo = "pycdlib"; + tag = "v${version}"; + hash = "sha256-BD33nA60x6YvwkYGXPA0E6s8N/XhWaY/+tTRbFN9ai4="; + }; + + build-system = [ setuptools ]; + + nativeCheckInputs = [ pytestCheckHook ]; + + disabledTestPaths = [ + # These tests require a Fedora-patched genisoimage + "tests/integration/test_hybrid.py" + "tests/integration/test_parse.py" + "tests/tools/test_pycdlib_genisoimage.py" + ]; + + disabledTests = [ + # Timezone-dependent tests fail in the sandbox + "test_volumedescdate_new_nonzero" + "test_gmtoffset_from_tm" + "test_gmtoffset_from_tm_day_rollover" + "test_gmtoffset_from_tm_2023_rollover" + ]; + + pythonImportsCheck = [ "pycdlib" ]; + + meta = { + description = "Pure python library to read and write ISO9660 files"; + homepage = "https://github.com/clalancette/pycdlib"; + license = lib.licenses.lgpl2Only; + maintainers = with lib.maintainers; [ Enzime ]; + platforms = lib.platforms.all; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e7aedf94dae3..739714cafb0a 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -13199,6 +13199,8 @@ self: super: with self; { pycdio = callPackage ../development/python-modules/pycdio { }; + pycdlib = callPackage ../development/python-modules/pycdlib { }; + pycec = callPackage ../development/python-modules/pycec { }; pycep-parser = callPackage ../development/python-modules/pycep-parser { };