Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / faker / default.nix
blob4f0a1e70135270375a292d83fd6c2beb7e641b7f
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , freezegun
5 , pillow
6 , pytestCheckHook
7 , python-dateutil
8 , text-unidecode
9 , ukpostcodeparser
10 , validators
13 buildPythonPackage rec {
14   pname = "faker";
15   version = "19.6.1";
17   src = fetchPypi {
18     pname = "Faker";
19     inherit version;
20     hash = "sha256-XWt4gLO+pwgHXd+Rk4QkRT8HBTpZ+PoEU8GHDfb/MpI=";
21   };
23   propagatedBuildInputs = [
24     python-dateutil
25     text-unidecode
26   ];
28   nativeCheckInputs = [
29     freezegun
30     pillow
31     pytestCheckHook
32     ukpostcodeparser
33     validators
34   ];
36   # avoid tests which import random2, an abandoned library
37   pytestFlagsArray = [
38     "--ignore=tests/providers/test_ssn.py"
39   ];
40   pythonImportsCheck = [ "faker" ];
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   };