pythonPackages.factory_boy: fix python2 dependencies

This commit is contained in:
Jonathan Ringer 2019-10-17 16:03:40 -07:00 committed by Frederik Rietdijk
parent ded0a4b6c0
commit 5ea783a60c

View File

@ -1,8 +1,10 @@
{ stdenv { lib
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, isPy27
, faker , faker
, python , python
, ipaddress
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -14,16 +16,12 @@ buildPythonPackage rec {
sha256 = "0w53hjgag6ad5i2vmrys8ysk54agsqvgbjy9lg8g0d8pi9h8vx7s"; sha256 = "0w53hjgag6ad5i2vmrys8ysk54agsqvgbjy9lg8g0d8pi9h8vx7s";
}; };
propagatedBuildInputs = [ faker ]; propagatedBuildInputs = [ faker ] ++ lib.optionals isPy27 [ ipaddress ];
# tests not included with pypi release # tests not included with pypi release
doCheck = false; doCheck = false;
checkPhase = '' meta = with lib; {
${python.interpreter} -m unittest
'';
meta = with stdenv.lib; {
description = "A Python package to create factories for complex objects"; description = "A Python package to create factories for complex objects";
homepage = https://github.com/rbarrois/factory_boy; homepage = https://github.com/rbarrois/factory_boy;
license = licenses.mit; license = licenses.mit;