summary refs log tree commit diff
path: root/pkgs/development/python-modules/fake_factory/default.nix
blob: 002df15177bd6a9c6d0e00878e4b84e8d133cb1b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{ lib
, buildPythonPackage
, fetchPypi
, python
, six
, python-dateutil
, ipaddress
, mock
}:

buildPythonPackage rec {
  pname = "fake-factory";
  version = "9999.9.9";

  src = fetchPypi {
    inherit pname version;
    sha256 = "f5bd18deb22ad8cb4402513c025877bc6b50de58902d686b6b21ba8981dce260";
  };

  propagatedBuildInputs = [ six python-dateutil ipaddress mock ];

  # fake-factory is depreciated and single test will always fail
  doCheck = false;

  checkPhase = ''
    ${python.interpreter} -m unittest faker.tests
  '';

  meta = with lib; {
    description = "A Python package that generates fake data for you";
    homepage    = "https://pypi.python.org/pypi/fake-factory";
    license     = licenses.mit;
    maintainers = with maintainers; [ lovek323 ];
    platforms   = platforms.unix;
  };

}