Unverified Commit 1dd9f1d6 authored by wxt's avatar wxt
Browse files

python3Packages.polyfactory: init at 2.18.0

parent 54ce061f
Loading
Loading
Loading
Loading
+56 −0
Original line number Diff line number Diff line
{
  buildPythonPackage,
  lib,
  fetchPypi,
  hatchling,
  hypothesis,
  faker,
  msgspec,
  sqlalchemy,
  aiosqlite,
  typing-extensions,
  pymongo,
  pytest-asyncio,
  pydantic,
  pytestCheckHook,
  email-validator,
}:

buildPythonPackage rec {
  pname = "polyfactory";
  version = "2.18.0";
  pyproject = true;

  src = fetchPypi {
    inherit version pname;
    hash = "sha256-BNi01JhuQGzUwWzAHou3Rwg4QtV6XA26Y6Ie5e91umY=";
  };

  build-system = [ hatchling ];

  dependencies = [
    faker
    typing-extensions
    hypothesis
    pydantic
    sqlalchemy
    msgspec
    pymongo
    aiosqlite
    email-validator
  ];

  nativeCheckInputs = [
    pytestCheckHook
    pytest-asyncio
  ];

  meta = {
    homepage = "https://polyfactory.litestar.dev/";
    platforms = lib.platforms.unix;
    maintainers = with lib.maintainers; [ bot-wxt1221 ];
    changelog = "https://github.com/litestar-org/polyfactory/releases/tag/v${version}";
    description = "Simple and powerful factories for mock data generation";
    license = lib.licenses.mit;
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -10731,6 +10731,8 @@ self: super: with self; {
  polyline = callPackage ../development/python-modules/polyline { };
  polyfactory = callPackage ../development/python-modules/polyfactory { };
  polygon3 = callPackage ../development/python-modules/polygon3 { };
  polyswarm-api = callPackage ../development/python-modules/polyswarm-api { };