forked from mirrors/nixpkgs
Merge pull request #28052 from jtojnar/fix/faker-py2
faker: add ipaddress dependency for Python 2
This commit is contained in:
commit
973f740894
|
@ -1,9 +1,11 @@
|
|||
{ stdenv, lib, buildPythonPackage, fetchPypi,
|
||||
{ lib, buildPythonPackage, fetchPypi, pythonOlder,
|
||||
# Build inputs
|
||||
dateutil, six,
|
||||
dateutil, six, ipaddress ? null,
|
||||
# Test inputs
|
||||
email_validator, nose, mock, ukpostcodeparser }:
|
||||
|
||||
assert pythonOlder "3.3" -> ipaddress != null;
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "Faker";
|
||||
version = "0.7.18";
|
||||
|
@ -24,7 +26,7 @@ buildPythonPackage rec {
|
|||
propagatedBuildInputs = [
|
||||
dateutil
|
||||
six
|
||||
];
|
||||
] ++ lib.optional (pythonOlder "3.3") ipaddress;
|
||||
|
||||
meta = with lib; {
|
||||
description = "A Python library for generating fake user data";
|
||||
|
|
Loading…
Reference in a new issue