Skip to content

Commit 6983909

Browse files
authored
fromager: init at 0.46.1; elfdeps: init at 0.2.0 (#405570)
2 parents 3a00b4e + f54c283 commit 6983909

File tree

3 files changed

+118
-0
lines changed

3 files changed

+118
-0
lines changed
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
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+
}
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
{
2+
lib,
3+
python3,
4+
fetchFromGitHub,
5+
}:
6+
7+
python3.pkgs.buildPythonApplication rec {
8+
pname = "fromager";
9+
version = "0.46.1";
10+
pyproject = true;
11+
12+
src = fetchFromGitHub {
13+
owner = "python-wheel-build";
14+
repo = "fromager";
15+
tag = version;
16+
hash = "sha256-SBb5gWV8/t3oRAR2R5T72DW1LKrxXXH6yho9l7agsNI=";
17+
};
18+
19+
build-system = with python3.pkgs; [
20+
setuptools
21+
setuptools-scm
22+
];
23+
24+
dependencies = with python3.pkgs; [
25+
click
26+
elfdeps
27+
html5lib
28+
packaging
29+
pkginfo
30+
psutil
31+
pydantic
32+
pyproject-hooks
33+
pyyaml
34+
requests
35+
resolvelib
36+
rich
37+
setuptools
38+
stevedore
39+
tomlkit
40+
tqdm
41+
virtualenv
42+
wheel
43+
];
44+
45+
nativeCheckInputs = with python3.pkgs; [
46+
pytestCheckHook
47+
requests-mock
48+
twine
49+
];
50+
51+
pythonImportsCheck = [
52+
"fromager"
53+
];
54+
55+
meta = {
56+
description = "Wheel maker";
57+
homepage = "https://pypi.org/project/fromager/";
58+
license = lib.licenses.asl20;
59+
maintainers = with lib.maintainers; [ booxter ];
60+
mainProgram = "fromager";
61+
};
62+
}

pkgs/top-level/python-packages.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4408,6 +4408,8 @@ self: super: with self; {
44084408

44094409
elevenlabs = callPackage ../development/python-modules/elevenlabs { };
44104410

4411+
elfdeps = toPythonModule (pkgs.elfdeps.override { python3Packages = self; });
4412+
44114413
elgato = callPackage ../development/python-modules/elgato { };
44124414

44134415
eliot = callPackage ../development/python-modules/eliot { };

0 commit comments

Comments
 (0)