2019-10-18 01:03:40 +02:00
|
|
|
{ lib
|
2018-10-15 21:43:20 +02:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2019-10-18 01:03:40 +02:00
|
|
|
, isPy27
|
2018-11-29 14:33:54 +01:00
|
|
|
, faker
|
|
|
|
, python
|
2019-10-18 01:03:40 +02:00
|
|
|
, ipaddress
|
2018-10-15 21:43:20 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "factory_boy";
|
2019-05-22 18:01:42 +02:00
|
|
|
version = "2.12.0";
|
2018-10-15 21:43:20 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-05-22 18:01:42 +02:00
|
|
|
sha256 = "0w53hjgag6ad5i2vmrys8ysk54agsqvgbjy9lg8g0d8pi9h8vx7s";
|
2018-10-15 21:43:20 +02:00
|
|
|
};
|
|
|
|
|
2019-10-18 01:03:40 +02:00
|
|
|
propagatedBuildInputs = [ faker ] ++ lib.optionals isPy27 [ ipaddress ];
|
2018-11-29 19:21:12 +01:00
|
|
|
|
|
|
|
# tests not included with pypi release
|
|
|
|
doCheck = false;
|
2018-10-15 21:43:20 +02:00
|
|
|
|
2019-10-18 01:03:40 +02:00
|
|
|
meta = with lib; {
|
2018-10-15 21:43:20 +02:00
|
|
|
description = "A Python package to create factories for complex objects";
|
|
|
|
homepage = https://github.com/rbarrois/factory_boy;
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|