Skip to content

Commit 5e051b3

Browse files
authored
python313Packages.passlib: restore old name in distinfo (#396065)
2 parents 4e5373f + 8924a05 commit 5e051b3

File tree

6 files changed

+70
-62
lines changed

6 files changed

+70
-62
lines changed

pkgs/development/python-modules/bundlewrap/default.nix

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,6 @@ buildPythonPackage rec {
3131
};
3232

3333
build-system = [ setuptools ];
34-
35-
pythonRemoveDeps = [
36-
# distinfo renamed to libpass, but still imports as passlib
37-
"passlib"
38-
];
39-
4034
dependencies = [
4135
setuptools
4236
cryptography
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
{
2+
argon2-cffi,
3+
bcrypt,
4+
buildPythonPackage,
5+
cryptography,
6+
fetchFromGitHub,
7+
hatchling,
8+
lib,
9+
pytest-archon,
10+
pytest-xdist,
11+
pytestCheckHook,
12+
typing-extensions,
13+
}:
14+
15+
buildPythonPackage rec {
16+
pname = "libpass";
17+
version = "1.9.0";
18+
pyproject = true;
19+
20+
src = fetchFromGitHub {
21+
owner = "ThirVondukr";
22+
repo = "passlib";
23+
tag = version;
24+
hash = "sha256-Q5OEQkty0/DugRvF5LA+PaDDlF/6ysx4Nel5K2kH5s4=";
25+
};
26+
27+
build-system = [ hatchling ];
28+
29+
dependencies = [
30+
typing-extensions
31+
];
32+
33+
optional-dependencies = {
34+
argon2 = [ argon2-cffi ];
35+
bcrypt = [ bcrypt ];
36+
totp = [ cryptography ];
37+
};
38+
39+
nativeCheckInputs = [
40+
pytest-archon
41+
pytest-xdist
42+
pytestCheckHook
43+
] ++ lib.flatten (lib.attrValues optional-dependencies);
44+
45+
pythonImportsCheck = [ "passlib" ];
46+
47+
disabledTests = [
48+
# timming sensitive
49+
"test_dummy_verify"
50+
"test_encrypt_cost_timing"
51+
];
52+
53+
meta = {
54+
changelog = "https://github.com/ThirVondukr/passlib/blob/${src.tag}/CHANGELOG.md";
55+
description = "Comprehensive password hashing framework supporting over 30 schemes";
56+
homepage = "https://github.com/ThirVondukr/passlib";
57+
license = lib.licenses.bsd3;
58+
maintainers = with lib.maintainers; [ dotlambda ];
59+
};
60+
}

pkgs/development/python-modules/mitmproxy/default.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ buildPythonPackage rec {
5151
};
5252

5353
pythonRelaxDeps = [
54+
"h2"
5455
"passlib"
5556
"protobuf"
5657
"pyparsing"
Lines changed: 7 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,14 @@
11
{
2-
lib,
3-
buildPythonPackage,
4-
fetchFromGitHub,
5-
argon2-cffi,
6-
bcrypt,
7-
cryptography,
8-
hatchling,
9-
pytestCheckHook,
10-
pytest-archon,
11-
pytest-xdist,
12-
typing-extensions,
2+
libpass,
3+
mkPythonMetaPackage,
134
}:
145

15-
buildPythonPackage rec {
6+
mkPythonMetaPackage {
167
pname = "passlib";
17-
version = "1.9.0";
18-
pyproject = true;
19-
20-
src = fetchFromGitHub {
21-
owner = "ThirVondukr";
22-
repo = "passlib";
23-
tag = version;
24-
hash = "sha256-Q5OEQkty0/DugRvF5LA+PaDDlF/6ysx4Nel5K2kH5s4=";
25-
};
26-
27-
build-system = [ hatchling ];
28-
29-
dependencies = [ typing-extensions ];
30-
31-
optional-dependencies = {
32-
argon2 = [ argon2-cffi ];
33-
bcrypt = [ bcrypt ];
34-
totp = [ cryptography ];
35-
};
36-
37-
nativeCheckInputs = [
38-
pytestCheckHook
39-
pytest-archon
40-
pytest-xdist
41-
] ++ lib.flatten (lib.attrValues optional-dependencies);
42-
43-
pythonImportsCheck = [ "passlib" ];
44-
45-
disabledTests = [
46-
# timming sensitive
47-
"test_dummy_verify"
48-
"test_encrypt_cost_timing"
49-
];
50-
8+
inherit (libpass) version;
9+
dependencies = [ libpass ];
10+
optional-dependencies = libpass.optional-dependencies or { };
5111
meta = {
52-
changelog = "https://github.com/ThirVondukr/passlib/blob/${src.tag}/CHANGELOG.md";
53-
description = "Password hashing library for Python";
54-
homepage = "https://github.com/ThirVondukr/passlib";
55-
license = lib.licenses.bsd3;
56-
maintainers = with lib.maintainers; [ dotlambda ];
12+
inherit (libpass.meta) changelog description homepage;
5713
};
5814
}

pkgs/servers/mail/mailman/package.nix

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,6 @@ buildPythonPackage rec {
2626
setuptools
2727
];
2828

29-
pythonRemoveDeps = [
30-
# distinfo renamed to libpass
31-
"passlib"
32-
];
33-
3429
dependencies = with python3.pkgs; [
3530
aiosmtpd
3631
alembic

pkgs/top-level/python-packages.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7718,6 +7718,8 @@ self: super: with self; {
77187718
}
77197719
);
77207720

7721+
libpass = callPackage ../development/python-modules/libpass { };
7722+
77217723
libpcap = callPackage ../development/python-modules/libpcap {
77227724
pkgsLibpcap = pkgs.libpcap; # Needs the C library
77237725
};

0 commit comments

Comments
 (0)