summary refs log tree commit diff
path: root/pkgs/development/python-modules
diff options
context:
space:
mode:
authorJonathan Ringer <jonringer117@gmail.com>2020-01-09 11:35:05 -0800
committerJon <jonringer@users.noreply.github.com>2020-01-09 12:28:38 -0800
commit1e6bb7ee0b1c7a5630dff1dd83dd055776d2c65b (patch)
tree4cbe4218f7e107fde8d10222a7c43439cc9904fb /pkgs/development/python-modules
parentcef835d40eda2e942cde1783677a2e7cb4407df1 (diff)
downloadnixpkgs-1e6bb7ee0b1c7a5630dff1dd83dd055776d2c65b.tar
nixpkgs-1e6bb7ee0b1c7a5630dff1dd83dd055776d2c65b.tar.gz
nixpkgs-1e6bb7ee0b1c7a5630dff1dd83dd055776d2c65b.tar.bz2
nixpkgs-1e6bb7ee0b1c7a5630dff1dd83dd055776d2c65b.tar.lz
nixpkgs-1e6bb7ee0b1c7a5630dff1dd83dd055776d2c65b.tar.xz
nixpkgs-1e6bb7ee0b1c7a5630dff1dd83dd055776d2c65b.tar.zst
nixpkgs-1e6bb7ee0b1c7a5630dff1dd83dd055776d2c65b.zip
python2Packages.ihatemoney: fix python2 test deps
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r--pkgs/development/python-modules/ihatemoney/default.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/ihatemoney/default.nix b/pkgs/development/python-modules/ihatemoney/default.nix
index e37dfe80e58..5df5e6b18cd 100644
--- a/pkgs/development/python-modules/ihatemoney/default.nix
+++ b/pkgs/development/python-modules/ihatemoney/default.nix
@@ -1,4 +1,4 @@
-{ buildPythonPackage, lib, fetchFromGitHub, nixosTests
+{ buildPythonPackage, lib, fetchFromGitHub, isPy27, nixosTests
 , alembic
 , aniso8601
 , Babel
@@ -20,6 +20,7 @@
 , jinja2
 , Mako
 , markupsafe
+, mock
 , python-dateutil
 , pytz
 , six
@@ -74,7 +75,7 @@ buildPythonPackage rec {
 
   checkInputs = [
     flask_testing
-  ];
+  ] ++ lib.optionals isPy27 [ mock ];
 
   passthru.tests = {
     inherit (nixosTests) ihatemoney;