From b4f1934f751dd93d4ae7e039918b3d5a0de30ec3 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 29 Sep 2024 17:04:29 +0200 Subject: [PATCH] python3Packages.factory-boy: 3.3.0 -> 3.3.1 https://github.com/FactoryBoy/factory_boy/blob/3.3.1/docs/changelog.rst --- .../python-modules/factory-boy/default.nix | 26 ++++++++++--------- 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/pkgs/development/python-modules/factory-boy/default.nix b/pkgs/development/python-modules/factory-boy/default.nix index 8b93fec4f8d9..b7362eb13913 100644 --- a/pkgs/development/python-modules/factory-boy/default.nix +++ b/pkgs/development/python-modules/factory-boy/default.nix @@ -9,42 +9,44 @@ mongoengine, pytestCheckHook, pythonOlder, + mongomock, sqlalchemy, sqlalchemy-utils, + setuptools, }: buildPythonPackage rec { pname = "factory-boy"; - version = "3.3.0"; - format = "setuptools"; + version = "3.3.1"; + pyproject = true; - disabled = pythonOlder "3.7"; + disabled = pythonOlder "3.8"; src = fetchPypi { pname = "factory_boy"; inherit version; - hash = "sha256-vHbZfRplu9mEKm1yKIIJjrVJ7I7hCB+fsuj/KfDDAPE="; + hash = "sha256-gxeqUonN/EX5yuVw/rB6YXcxbILjTRTfPC4fIvJqvvA="; }; - postPatch = '' - substituteInPlace tests/test_version.py \ - --replace '"3.2.1.dev0")' '"${version}")' - ''; + build-system = [ setuptools ]; - propagatedBuildInputs = [ faker ]; + dependencies = [ faker ]; nativeCheckInputs = [ django flask flask-sqlalchemy mongoengine + mongomock pytestCheckHook sqlalchemy sqlalchemy-utils ]; - # Checks for MongoDB requires an a running DB - disabledTests = [ "MongoEngineTestCase" ]; + disabledTests = [ + # Test checks for MongoDB requires an a running DB + "MongoEngineTestCase" + ]; disabledTestPaths = [ # incompatible with latest flask-sqlalchemy @@ -57,7 +59,7 @@ buildPythonPackage rec { description = "Python package to create factories for complex objects"; homepage = "https://github.com/rbarrois/factory_boy"; changelog = "https://github.com/FactoryBoy/factory_boy/blob/${version}/docs/changelog.rst"; - license = with licenses; [ mit ]; + license = licenses.mit; maintainers = with maintainers; [ fab ]; }; }