Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 45 lines 872 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, dateutil 5, text-unidecode 6, freezegun 7, pytestCheckHook 8, ukpostcodeparser 9, validators 10}: 11 12buildPythonPackage rec { 13 pname = "Faker"; 14 version = "6.6.2"; 15 16 src = fetchPypi { 17 inherit pname version; 18 sha256 = "f43ac743c34affb1c7fccca8b06450371cd482b6ddcb4110e420acb24356e70b"; 19 }; 20 21 propagatedBuildInputs = [ 22 dateutil 23 text-unidecode 24 ]; 25 26 checkInputs = [ 27 freezegun 28 pytestCheckHook 29 ukpostcodeparser 30 validators 31 ]; 32 33 # avoid tests which import random2, an abandoned library 34 pytestFlagsArray = [ 35 "--ignore=tests/providers/test_ssn.py" 36 ]; 37 pythonImportsCheck = [ "faker" ]; 38 39 meta = with lib; { 40 description = "Python library for generating fake user data"; 41 homepage = "http://faker.rtfd.org"; 42 license = licenses.mit; 43 maintainers = with maintainers; [ lovek323 ]; 44 }; 45}