2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-15 19:40:57 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, python
|
|
|
|
, six
|
2021-07-03 11:37:24 +00:00
|
|
|
, python-dateutil
|
2018-10-15 19:40:57 +00:00
|
|
|
, ipaddress
|
|
|
|
, mock
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "fake-factory";
|
2018-11-04 10:34:58 +00:00
|
|
|
version = "9999.9.9";
|
2018-10-15 19:40:57 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-11-04 10:34:58 +00:00
|
|
|
sha256 = "f5bd18deb22ad8cb4402513c025877bc6b50de58902d686b6b21ba8981dce260";
|
2018-10-15 19:40:57 +00:00
|
|
|
};
|
|
|
|
|
2021-07-03 11:37:24 +00:00
|
|
|
propagatedBuildInputs = [ six python-dateutil ipaddress mock ];
|
2018-11-29 18:24:43 +00:00
|
|
|
|
|
|
|
# fake-factory is depreciated and single test will always fail
|
|
|
|
doCheck = false;
|
|
|
|
|
2018-10-15 19:40:57 +00:00
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} -m unittest faker.tests
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-10-15 19:40:57 +00:00
|
|
|
description = "A Python package that generates fake data for you";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://pypi.python.org/pypi/fake-factory";
|
2018-10-15 19:40:57 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ lovek323 ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|