aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/python-modules/factory_boy/default.nix
blob: 92e889564afd8c3b0bfb1defee3e47cbf8742a77 (plain)
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
{ lib
, buildPythonPackage
, fetchPypi
, isPy27
, faker
, python
, ipaddress
}:

buildPythonPackage rec {
  pname = "factory_boy";
  version = "2.12.0";

  src = fetchPypi {
    inherit pname version;
    sha256 = "0w53hjgag6ad5i2vmrys8ysk54agsqvgbjy9lg8g0d8pi9h8vx7s";
  };

  propagatedBuildInputs = [ faker ] ++ lib.optionals isPy27 [ ipaddress ];

  # tests not included with pypi release
  doCheck = false;

  meta = with lib; {
    description = "A Python package to create factories for complex objects";
    homepage    = "https://github.com/rbarrois/factory_boy";
    license     = licenses.mit;
  };

}