python3.pkgs.bcrypt: fix build

also use pyproject format as we're heading that direction.
This commit is contained in:
Frederik Rietdijk 2022-04-05 20:35:57 +02:00 committed by Martin Weinelt
parent 0594c921f1
commit d52b53fd9e

View file

@ -1,5 +1,6 @@
{ lib
, buildPythonPackage
, setuptools
, isPyPy
, fetchPypi
, pythonOlder
@ -11,7 +12,7 @@
buildPythonPackage rec {
pname = "bcrypt";
version = "3.2.0";
format = "setuptools";
format = "pyproject";
disabled = pythonOlder "3.6";
@ -20,13 +21,16 @@ buildPythonPackage rec {
sha256 = "5b93c1726e50a93a033c36e5ca7fdcd29a5c7395af50a6892f5d9e7c6cfbfb29";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
six
] ++ lib.optional (!isPyPy) [
cffi
];
propagatedNativeBuildInputs = lib.optional (!isPyPy) [
propagatedNativeBuildInputs = [
cffi
];