diff options
author | Jonathan Ringer <jonringer117@gmail.com> | 2019-10-17 16:03:40 -0700 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2019-10-18 09:54:05 +0200 |
commit | 5ea783a60cc7a271abaef3388a42472d2a72add5 (patch) | |
tree | 68c2d8da5ed4833efaefe5a4a407b5cfe462d8c8 /pkgs/development/python-modules/factory_boy/default.nix | |
parent | ded0a4b6c02b56f66099d6016dc1895e4e111a6d (diff) |
pythonPackages.factory_boy: fix python2 dependencies
Diffstat (limited to '')
-rw-r--r-- | pkgs/development/python-modules/factory_boy/default.nix | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/pkgs/development/python-modules/factory_boy/default.nix b/pkgs/development/python-modules/factory_boy/default.nix index 0c87f309489e..becf1cc19726 100644 --- a/pkgs/development/python-modules/factory_boy/default.nix +++ b/pkgs/development/python-modules/factory_boy/default.nix @@ -1,8 +1,10 @@ -{ stdenv +{ lib , buildPythonPackage , fetchPypi +, isPy27 , faker , python +, ipaddress }: buildPythonPackage rec { @@ -14,16 +16,12 @@ buildPythonPackage rec { sha256 = "0w53hjgag6ad5i2vmrys8ysk54agsqvgbjy9lg8g0d8pi9h8vx7s"; }; - propagatedBuildInputs = [ faker ]; + propagatedBuildInputs = [ faker ] ++ lib.optionals isPy27 [ ipaddress ]; # tests not included with pypi release doCheck = false; - checkPhase = '' - ${python.interpreter} -m unittest - ''; - - meta = with stdenv.lib; { + meta = with lib; { description = "A Python package to create factories for complex objects"; homepage = https://github.com/rbarrois/factory_boy; license = licenses.mit; |