depot/third_party/nixpkgs/pkgs/development/python-modules/argon2_cffi/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

34 lines
664 B
Nix

{ cffi
, six
, enum34
, hypothesis
, pytest
, wheel
, buildPythonPackage
, fetchPypi
, isPy3k
, lib
}:
buildPythonPackage rec {
pname = "argon2_cffi";
version = "19.2.0";
src = fetchPypi {
pname = "argon2-cffi";
inherit version;
sha256 = "ffaa623eea77b497ffbdd1a51e941b33d3bf552c60f14dbee274c4070677bda3";
};
propagatedBuildInputs = [ cffi six ] ++ lib.optional (!isPy3k) enum34;
checkInputs = [ hypothesis pytest wheel ];
checkPhase = ''
pytest tests
'';
meta = with lib; {
description = "Secure Password Hashes for Python";
homepage = "https://argon2-cffi.readthedocs.io/";
license = licenses.mit;
};
}