diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2021-02-07 11:08:44 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-07 11:08:44 -0500 |
commit | df9c2bfe58356e399a7536bb4ee473c101580b9f (patch) | |
tree | 2a0edf6ef3cca14fbe1572d0763d839d1721f32b | |
parent | 5491a4f8e9d52fecc6931efe5b48d81aaf6e9524 (diff) | |
parent | 69486ada688177209c4d238f3236ecc363588cc5 (diff) | |
download | nixpkgs-df9c2bfe58356e399a7536bb4ee473c101580b9f.tar nixpkgs-df9c2bfe58356e399a7536bb4ee473c101580b9f.tar.gz nixpkgs-df9c2bfe58356e399a7536bb4ee473c101580b9f.tar.bz2 nixpkgs-df9c2bfe58356e399a7536bb4ee473c101580b9f.tar.lz nixpkgs-df9c2bfe58356e399a7536bb4ee473c101580b9f.tar.xz nixpkgs-df9c2bfe58356e399a7536bb4ee473c101580b9f.tar.zst nixpkgs-df9c2bfe58356e399a7536bb4ee473c101580b9f.zip |
Merge pull request #109276 from fabaff/factory-boy
python3Packages.factory_boy: 3.1.0 -> 3.2.0
-rw-r--r-- | pkgs/development/python-modules/factory_boy/default.nix | 39 |
1 files changed, 26 insertions, 13 deletions
diff --git a/pkgs/development/python-modules/factory_boy/default.nix b/pkgs/development/python-modules/factory_boy/default.nix index a953632f9fd..845e27dcc44 100644 --- a/pkgs/development/python-modules/factory_boy/default.nix +++ b/pkgs/development/python-modules/factory_boy/default.nix @@ -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 ]; }; - } |