python3Packages.bcrypt: add pythonImportsCheck
This commit is contained in:
committed by
Martin Weinelt
parent
c7fa67725a
commit
0594c921f1
@@ -1,9 +1,18 @@
|
||||
{ lib, buildPythonPackage, isPyPy, fetchPypi, pythonOlder
|
||||
, cffi, pytestCheckHook, six }:
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, isPyPy
|
||||
, fetchPypi
|
||||
, pythonOlder
|
||||
, cffi
|
||||
, pytestCheckHook
|
||||
, six
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "3.2.0";
|
||||
pname = "bcrypt";
|
||||
version = "3.2.0";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchPypi {
|
||||
@@ -11,16 +20,28 @@ buildPythonPackage rec {
|
||||
sha256 = "5b93c1726e50a93a033c36e5ca7fdcd29a5c7395af50a6892f5d9e7c6cfbfb29";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ six ] ++ lib.optional (!isPyPy) cffi;
|
||||
propagatedBuildInputs = [
|
||||
six
|
||||
] ++ lib.optional (!isPyPy) [
|
||||
cffi
|
||||
];
|
||||
|
||||
propagatedNativeBuildInputs = lib.optional (!isPyPy) cffi;
|
||||
propagatedNativeBuildInputs = lib.optional (!isPyPy) [
|
||||
cffi
|
||||
];
|
||||
|
||||
checkInputs = [ pytestCheckHook ];
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"bcrypt"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
maintainers = with maintainers; [ domenkozar ];
|
||||
description = "Modern password hashing for your software and your servers";
|
||||
license = licenses.asl20;
|
||||
homepage = "https://github.com/pyca/bcrypt/";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ domenkozar ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user