1{ lib
2, buildPythonPackage
3, fetchPypi
4, isPy27
5, faker
6, python
7, ipaddress
8}:
9
10buildPythonPackage rec {
11 pname = "factory_boy";
12 version = "3.0.1";
13
14 src = fetchPypi {
15 inherit pname version;
16 sha256 = "2ce2f665045d9f15145a6310565fcb8255d52fc6fd867f3b783b3ac3de6cf10e";
17 };
18
19 propagatedBuildInputs = [ faker ] ++ lib.optionals isPy27 [ ipaddress ];
20
21 # tests not included with pypi release
22 doCheck = false;
23
24 meta = with lib; {
25 description = "A Python package to create factories for complex objects";
26 homepage = "https://github.com/rbarrois/factory_boy";
27 license = licenses.mit;
28 };
29
30}