2018-10-15 21:43:20 +02:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, fake_factory
|
2018-11-29 14:33:54 +01:00
|
|
|
, faker
|
|
|
|
, python
|
2018-10-15 21:43:20 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "factory_boy";
|
2018-11-04 11:34:58 +01:00
|
|
|
version = "2.11.1";
|
2018-10-15 21:43:20 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-11-04 11:34:58 +01:00
|
|
|
sha256 = "6f25cc4761ac109efd503f096e2ad99421b1159f01a29dbb917359dcd68e08ca";
|
2018-10-15 21:43:20 +02:00
|
|
|
};
|
|
|
|
|
2018-11-29 14:33:54 +01:00
|
|
|
checkInputs = [ faker ];
|
2018-10-15 21:43:20 +02:00
|
|
|
propagatedBuildInputs = [ fake_factory ];
|
|
|
|
|
2018-11-29 14:33:54 +01:00
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} -m unittest
|
|
|
|
'';
|
|
|
|
|
2018-10-15 21:43:20 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A Python package to create factories for complex objects";
|
|
|
|
homepage = https://github.com/rbarrois/factory_boy;
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|