mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
python313Packages.passlib: restore old name in distinfo (#396065)
This commit is contained in:
commit
5e051b3c1c
6 changed files with 70 additions and 62 deletions
|
@ -31,12 +31,6 @@ buildPythonPackage rec {
|
||||||
};
|
};
|
||||||
|
|
||||||
build-system = [ setuptools ];
|
build-system = [ setuptools ];
|
||||||
|
|
||||||
pythonRemoveDeps = [
|
|
||||||
# distinfo renamed to libpass, but still imports as passlib
|
|
||||||
"passlib"
|
|
||||||
];
|
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
setuptools
|
setuptools
|
||||||
cryptography
|
cryptography
|
||||||
|
|
60
pkgs/development/python-modules/libpass/default.nix
Normal file
60
pkgs/development/python-modules/libpass/default.nix
Normal file
|
@ -0,0 +1,60 @@
|
||||||
|
{
|
||||||
|
argon2-cffi,
|
||||||
|
bcrypt,
|
||||||
|
buildPythonPackage,
|
||||||
|
cryptography,
|
||||||
|
fetchFromGitHub,
|
||||||
|
hatchling,
|
||||||
|
lib,
|
||||||
|
pytest-archon,
|
||||||
|
pytest-xdist,
|
||||||
|
pytestCheckHook,
|
||||||
|
typing-extensions,
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "libpass";
|
||||||
|
version = "1.9.0";
|
||||||
|
pyproject = true;
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "ThirVondukr";
|
||||||
|
repo = "passlib";
|
||||||
|
tag = version;
|
||||||
|
hash = "sha256-Q5OEQkty0/DugRvF5LA+PaDDlF/6ysx4Nel5K2kH5s4=";
|
||||||
|
};
|
||||||
|
|
||||||
|
build-system = [ hatchling ];
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
typing-extensions
|
||||||
|
];
|
||||||
|
|
||||||
|
optional-dependencies = {
|
||||||
|
argon2 = [ argon2-cffi ];
|
||||||
|
bcrypt = [ bcrypt ];
|
||||||
|
totp = [ cryptography ];
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeCheckInputs = [
|
||||||
|
pytest-archon
|
||||||
|
pytest-xdist
|
||||||
|
pytestCheckHook
|
||||||
|
] ++ lib.flatten (lib.attrValues optional-dependencies);
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "passlib" ];
|
||||||
|
|
||||||
|
disabledTests = [
|
||||||
|
# timming sensitive
|
||||||
|
"test_dummy_verify"
|
||||||
|
"test_encrypt_cost_timing"
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
changelog = "https://github.com/ThirVondukr/passlib/blob/${src.tag}/CHANGELOG.md";
|
||||||
|
description = "Comprehensive password hashing framework supporting over 30 schemes";
|
||||||
|
homepage = "https://github.com/ThirVondukr/passlib";
|
||||||
|
license = lib.licenses.bsd3;
|
||||||
|
maintainers = with lib.maintainers; [ dotlambda ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -51,6 +51,7 @@ buildPythonPackage rec {
|
||||||
};
|
};
|
||||||
|
|
||||||
pythonRelaxDeps = [
|
pythonRelaxDeps = [
|
||||||
|
"h2"
|
||||||
"passlib"
|
"passlib"
|
||||||
"protobuf"
|
"protobuf"
|
||||||
"pyparsing"
|
"pyparsing"
|
||||||
|
|
|
@ -1,58 +1,14 @@
|
||||||
{
|
{
|
||||||
lib,
|
libpass,
|
||||||
buildPythonPackage,
|
mkPythonMetaPackage,
|
||||||
fetchFromGitHub,
|
|
||||||
argon2-cffi,
|
|
||||||
bcrypt,
|
|
||||||
cryptography,
|
|
||||||
hatchling,
|
|
||||||
pytestCheckHook,
|
|
||||||
pytest-archon,
|
|
||||||
pytest-xdist,
|
|
||||||
typing-extensions,
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
mkPythonMetaPackage {
|
||||||
pname = "passlib";
|
pname = "passlib";
|
||||||
version = "1.9.0";
|
inherit (libpass) version;
|
||||||
pyproject = true;
|
dependencies = [ libpass ];
|
||||||
|
optional-dependencies = libpass.optional-dependencies or { };
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "ThirVondukr";
|
|
||||||
repo = "passlib";
|
|
||||||
tag = version;
|
|
||||||
hash = "sha256-Q5OEQkty0/DugRvF5LA+PaDDlF/6ysx4Nel5K2kH5s4=";
|
|
||||||
};
|
|
||||||
|
|
||||||
build-system = [ hatchling ];
|
|
||||||
|
|
||||||
dependencies = [ typing-extensions ];
|
|
||||||
|
|
||||||
optional-dependencies = {
|
|
||||||
argon2 = [ argon2-cffi ];
|
|
||||||
bcrypt = [ bcrypt ];
|
|
||||||
totp = [ cryptography ];
|
|
||||||
};
|
|
||||||
|
|
||||||
nativeCheckInputs = [
|
|
||||||
pytestCheckHook
|
|
||||||
pytest-archon
|
|
||||||
pytest-xdist
|
|
||||||
] ++ lib.flatten (lib.attrValues optional-dependencies);
|
|
||||||
|
|
||||||
pythonImportsCheck = [ "passlib" ];
|
|
||||||
|
|
||||||
disabledTests = [
|
|
||||||
# timming sensitive
|
|
||||||
"test_dummy_verify"
|
|
||||||
"test_encrypt_cost_timing"
|
|
||||||
];
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
changelog = "https://github.com/ThirVondukr/passlib/blob/${src.tag}/CHANGELOG.md";
|
inherit (libpass.meta) changelog description homepage;
|
||||||
description = "Password hashing library for Python";
|
|
||||||
homepage = "https://github.com/ThirVondukr/passlib";
|
|
||||||
license = lib.licenses.bsd3;
|
|
||||||
maintainers = with lib.maintainers; [ dotlambda ];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,11 +26,6 @@ buildPythonPackage rec {
|
||||||
setuptools
|
setuptools
|
||||||
];
|
];
|
||||||
|
|
||||||
pythonRemoveDeps = [
|
|
||||||
# distinfo renamed to libpass
|
|
||||||
"passlib"
|
|
||||||
];
|
|
||||||
|
|
||||||
dependencies = with python3.pkgs; [
|
dependencies = with python3.pkgs; [
|
||||||
aiosmtpd
|
aiosmtpd
|
||||||
alembic
|
alembic
|
||||||
|
|
|
@ -7718,6 +7718,8 @@ self: super: with self; {
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
libpass = callPackage ../development/python-modules/libpass { };
|
||||||
|
|
||||||
libpcap = callPackage ../development/python-modules/libpcap {
|
libpcap = callPackage ../development/python-modules/libpcap {
|
||||||
pkgsLibpcap = pkgs.libpcap; # Needs the C library
|
pkgsLibpcap = pkgs.libpcap; # Needs the C library
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue