From d9b1bfa5bff567985b5a1c2ce8c0ce9aa5941799 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sat, 2 Mar 2019 10:47:45 +0100 Subject: [PATCH] python.pkgs.argon2_cffi: add enum34 dependency --- pkgs/development/python-modules/argon2_cffi/default.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/argon2_cffi/default.nix b/pkgs/development/python-modules/argon2_cffi/default.nix index e0ea40f87eb..187e795416c 100644 --- a/pkgs/development/python-modules/argon2_cffi/default.nix +++ b/pkgs/development/python-modules/argon2_cffi/default.nix @@ -1,30 +1,33 @@ { cffi , six +, enum34 , hypothesis , pytest , wheel , buildPythonPackage , fetchPypi +, isPy3k +, lib }: buildPythonPackage rec { pname = "argon2_cffi"; version = "19.1.0"; - name = "${pname}-${version}"; src = fetchPypi { inherit pname version; sha256 = "81548a27b919861040cb928a350733f4f9455dd67c7d1ba92eb5960a1d7f8b26"; }; - propagatedBuildInputs = [ cffi six ]; + propagatedBuildInputs = [ cffi six ] ++ lib.optional (!isPy3k) enum34; checkInputs = [ hypothesis pytest wheel ]; checkPhase = '' pytest tests ''; - meta = { + meta = with lib; { description = "Secure Password Hashes for Python"; homepage = https://argon2-cffi.readthedocs.io/; + license = licenses.mit; }; }