mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 20:21:14 +00:00
Merge pull request #109276 from fabaff/factory-boy
python3Packages.factory_boy: 3.1.0 -> 3.2.0
This commit is contained in:
commit
df9c2bfe58
|
@ -1,30 +1,43 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, isPy27
|
||||
, django
|
||||
, faker
|
||||
, python
|
||||
, ipaddress
|
||||
, fetchPypi
|
||||
, flask
|
||||
, flask_sqlalchemy
|
||||
, mongoengine
|
||||
, pytestCheckHook
|
||||
, sqlalchemy
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "factory_boy";
|
||||
version = "3.1.0";
|
||||
version = "3.2.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "ded73e49135c24bd4d3f45bf1eb168f8d290090f5cf4566b8df3698317dc9c08";
|
||||
sha256 = "0nsw2mdjk8sqds3qsix4cf19ws6i0fak79349pw2581ryc7w0720";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ faker ] ++ lib.optionals isPy27 [ ipaddress ];
|
||||
propagatedBuildInputs = [ faker ];
|
||||
|
||||
# tests not included with pypi release
|
||||
doCheck = false;
|
||||
checkInputs = [
|
||||
django
|
||||
flask
|
||||
flask_sqlalchemy
|
||||
mongoengine
|
||||
pytestCheckHook
|
||||
sqlalchemy
|
||||
];
|
||||
|
||||
# Checks for MongoDB requires an a running DB
|
||||
disabledTests = [ "MongoEngineTestCase" ];
|
||||
pythonImportsCheck = [ "factory" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A Python package to create factories for complex objects";
|
||||
homepage = "https://github.com/rbarrois/factory_boy";
|
||||
license = licenses.mit;
|
||||
description = "Python package to create factories for complex objects";
|
||||
homepage = "https://github.com/rbarrois/factory_boy";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue