@@ -1,9 +1,11 @@
1−{ stdenv, lib, buildPythonPackage, fetchPypi,
1+{ lib, buildPythonPackage, fetchPypi, pythonOlder,
2 # Build inputs
2 # Build inputs
3− dateutil, six,
3+ dateutil, six, ipaddress ? null,
4 # Test inputs
4 # Test inputs
5 email_validator, nose, mock, ukpostcodeparser }:
5 email_validator, nose, mock, ukpostcodeparser }:
7+assert pythonOlder "3.3" -> ipaddress != null;
7buildPythonPackage rec {
9buildPythonPackage rec {
8 pname = "Faker";
10 pname = "Faker";
9 version = "0.7.18";
11 version = "0.7.18";
@@ -24,7 +26,7 @@ buildPythonPackage rec {
24 propagatedBuildInputs = [
26 propagatedBuildInputs = [
27− ];
29+ ] ++ lib.optional (pythonOlder "3.3") ipaddress;
29 meta = with lib; {
31 meta = with lib; {
30 description = "A Python library for generating fake user data";
32 description = "A Python library for generating fake user data";