2017-08-09 00:52:14 +02:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, pythonOlder,
|
2017-07-04 01:33:04 +02:00
|
|
|
# Build inputs
|
2018-02-20 22:41:01 +01:00
|
|
|
dateutil, six, text-unidecode, ipaddress ? null,
|
2017-07-04 01:33:04 +02:00
|
|
|
# Test inputs
|
2018-11-04 11:34:58 +01:00
|
|
|
email_validator, mock, ukpostcodeparser, pytestrunner, pytest}:
|
2017-07-04 01:33:04 +02:00
|
|
|
|
2017-08-09 00:52:14 +02:00
|
|
|
assert pythonOlder "3.3" -> ipaddress != null;
|
|
|
|
|
2017-07-04 01:33:04 +02:00
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "Faker";
|
2018-11-20 11:58:35 +01:00
|
|
|
version = "0.9.3";
|
2017-07-04 01:33:04 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-11-20 11:58:35 +01:00
|
|
|
sha256 = "8c6df7903c7b4a51f4ac273bc5fec79a249e3220c47b35d1ac1175b41982d772";
|
2017-07-04 01:33:04 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
email_validator
|
|
|
|
mock
|
|
|
|
ukpostcodeparser
|
2018-11-04 11:34:58 +01:00
|
|
|
pytestrunner
|
|
|
|
pytest
|
2017-07-04 01:33:04 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
dateutil
|
|
|
|
six
|
2018-02-20 22:41:01 +01:00
|
|
|
text-unidecode
|
2017-08-09 00:52:14 +02:00
|
|
|
] ++ lib.optional (pythonOlder "3.3") ipaddress;
|
2017-07-04 01:33:04 +02:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A Python library for generating fake user data";
|
|
|
|
homepage = http://faker.rtfd.org;
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ lovek323 ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|