1{ lib 2, buildPythonPackage 3, fetchPypi 4, freezegun 5, pillow 6, pytestCheckHook 7, python-dateutil 8, text-unidecode 9, ukpostcodeparser 10, validators 11}: 12 13buildPythonPackage rec { 14 pname = "faker"; 15 version = "19.6.1"; 16 17 src = fetchPypi { 18 pname = "Faker"; 19 inherit version; 20 hash = "sha256-XWt4gLO+pwgHXd+Rk4QkRT8HBTpZ+PoEU8GHDfb/MpI="; 21 }; 22 23 propagatedBuildInputs = [ 24 python-dateutil 25 text-unidecode 26 ]; 27 28 nativeCheckInputs = [ 29 freezegun 30 pillow 31 pytestCheckHook 32 ukpostcodeparser 33 validators 34 ]; 35 36 # avoid tests which import random2, an abandoned library 37 pytestFlagsArray = [ 38 "--ignore=tests/providers/test_ssn.py" 39 ]; 40 pythonImportsCheck = [ "faker" ]; 41 42 meta = with lib; { 43 description = "Python library for generating fake user data"; 44 homepage = "http://faker.rtfd.org"; 45 license = licenses.mit; 46 maintainers = with maintainers; [ lovek323 ]; 47 }; 48}