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