Merge pull request #109276 from fabaff/factory-boy

python3Packages.factory_boy: 3.1.0 -> 3.2.0
This commit is contained in:
Mario Rodas 2021-02-07 11:08:44 -05:00 committed by GitHub
commit df9c2bfe58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,30 +1,43 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchPypi , django
, isPy27
, faker , faker
, python , fetchPypi
, ipaddress , flask
, flask_sqlalchemy
, mongoengine
, pytestCheckHook
, sqlalchemy
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "factory_boy"; pname = "factory_boy";
version = "3.1.0"; version = "3.2.0";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "ded73e49135c24bd4d3f45bf1eb168f8d290090f5cf4566b8df3698317dc9c08"; sha256 = "0nsw2mdjk8sqds3qsix4cf19ws6i0fak79349pw2581ryc7w0720";
}; };
propagatedBuildInputs = [ faker ] ++ lib.optionals isPy27 [ ipaddress ]; propagatedBuildInputs = [ faker ];
# tests not included with pypi release checkInputs = [
doCheck = false; django
flask
flask_sqlalchemy
mongoengine
pytestCheckHook
sqlalchemy
];
# Checks for MongoDB requires an a running DB
disabledTests = [ "MongoEngineTestCase" ];
pythonImportsCheck = [ "factory" ];
meta = with lib; { meta = with lib; {
description = "A Python package to create factories for complex objects"; description = "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 = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
}; };
} }