elfdeps: init at 0.2.0

Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com>

+56
+54
pkgs/by-name/el/elfdeps/package.nix
··· 1 + { 2 + lib, 3 + stdenv, 4 + fetchFromGitHub, 5 + python3Packages, 6 + }: 7 + 8 + python3Packages.buildPythonApplication rec { 9 + pname = "elfdeps"; 10 + version = "0.2.0"; 11 + pyproject = true; 12 + 13 + src = fetchFromGitHub { 14 + owner = "python-wheel-build"; 15 + repo = "elfdeps"; 16 + tag = "v${version}"; 17 + hash = "sha256-5CrxVmtZcBYBMXw7o58CpFopYFgXD4W/S42aow1z1Xw="; 18 + }; 19 + 20 + build-system = with python3Packages; [ 21 + setuptools 22 + setuptools-scm 23 + ]; 24 + 25 + dependencies = [ python3Packages.pyelftools ]; 26 + 27 + nativeCheckInputs = [ python3Packages.pytestCheckHook ]; 28 + 29 + pythonImportsCheck = [ 30 + "elfdeps" 31 + ]; 32 + 33 + preCheck = '' 34 + export PATH=$PATH:$out/bin 35 + ''; 36 + 37 + # tests assume that sys.executable is an ELF object 38 + doCheck = stdenv.hostPlatform.isElf; 39 + 40 + disabledTests = [ 41 + # Attempts to zip sys.executable and fails with: 42 + # ValueError: ZIP does not support timestamps before 1980 43 + "test_main_zipfile" 44 + "test_zipmember_python" 45 + ]; 46 + 47 + meta = { 48 + description = "Python implementation of RPM elfdeps"; 49 + homepage = "https://pypi.org/project/elfdeps/"; 50 + license = lib.licenses.asl20; 51 + maintainers = with lib.maintainers; [ booxter ]; 52 + mainProgram = "elfdeps"; 53 + }; 54 + }
+2
pkgs/top-level/python-packages.nix
··· 4404 4404 4405 4405 elevenlabs = callPackage ../development/python-modules/elevenlabs { }; 4406 4406 4407 + elfdeps = toPythonModule (pkgs.elfdeps.override { python3Packages = self; }); 4408 + 4407 4409 elgato = callPackage ../development/python-modules/elgato { }; 4408 4410 4409 4411 eliot = callPackage ../development/python-modules/eliot { };