mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-16 14:28:08 +00:00
python3Packages.bcrypt: Revert to 3.2.2 on i686-linux
The latest bcrypt version segfaults during test_kdf, which prevents the package from building. The package is in the critical chain for many NixOS tests, which currently won't complete on i686-linux. Upstream-Issue: https://github.com/pyca/bcrypt/issues/407
This commit is contained in:
parent
bf43ec1b78
commit
7d3e7f4890
pkgs
51
pkgs/development/python-modules/bcrypt/3.nix
Normal file
51
pkgs/development/python-modules/bcrypt/3.nix
Normal file
@ -0,0 +1,51 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, setuptools
|
||||
, isPyPy
|
||||
, fetchPypi
|
||||
, pythonOlder
|
||||
, cffi
|
||||
, pytestCheckHook
|
||||
, six
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "bcrypt";
|
||||
version = "3.2.2";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-QzxBDCF3BXcF2iqfLNAd0VdJOyp6wUyFk6FrPatra/s=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
six
|
||||
cffi
|
||||
];
|
||||
|
||||
propagatedNativeBuildInputs = [
|
||||
cffi
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"bcrypt"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Modern password hashing for your software and your servers";
|
||||
homepage = "https://github.com/pyca/bcrypt/";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ domenkozar ];
|
||||
};
|
||||
}
|
@ -1285,7 +1285,10 @@ in {
|
||||
|
||||
bcdoc = callPackage ../development/python-modules/bcdoc { };
|
||||
|
||||
bcrypt = callPackage ../development/python-modules/bcrypt { };
|
||||
bcrypt = if stdenv.hostPlatform.system == "i686-linux" then
|
||||
callPackage ../development/python-modules/bcrypt/3.nix { }
|
||||
else
|
||||
callPackage ../development/python-modules/bcrypt { };
|
||||
|
||||
beaker = callPackage ../development/python-modules/beaker { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user