diff options
author | Joerg Thalheim <joerg@thalheim.io> | 2017-11-07 18:00:57 +0000 |
---|---|---|
committer | Joerg Thalheim <joerg@thalheim.io> | 2017-11-07 18:03:13 +0000 |
commit | 05f9a3661253c657b156cd3459e99b7c27807829 (patch) | |
tree | edc2213562b722ae94761299236c17b88d81c7bf /pkgs | |
parent | 8ad6b2e862ca6606bdaea46bfc089caf6a019806 (diff) |
python.pkgs.libagent: enable tests
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/python-modules/libagent/default.nix | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/pkgs/development/python-modules/libagent/default.nix b/pkgs/development/python-modules/libagent/default.nix index 84c0a613854e..fe12f5ffb197 100644 --- a/pkgs/development/python-modules/libagent/default.nix +++ b/pkgs/development/python-modules/libagent/default.nix @@ -1,5 +1,5 @@ { stdenv, fetchPypi, buildPythonPackage, ed25519, ecdsa -, semver, keepkey, trezor, mnemonic, ledgerblue, unidecode +, semver, keepkey, trezor, mnemonic, ledgerblue, unidecode, mock, pytest }: buildPythonPackage rec { @@ -17,9 +17,13 @@ buildPythonPackage rec { trezor mnemonic ledgerblue ]; - propagatedBuildInputs = [ - unidecode - ]; + propagatedBuildInputs = [ unidecode ]; + + checkInputs = [ mock pytest ]; + + checkPhase = '' + py.test libagent/tests + ''; meta = with stdenv.lib; { description = "Using hardware wallets as SSH/GPG agent"; |