python3Packages.polyfactory: init at 2.18.0

This commit is contained in:
wxt 2024-11-12 18:51:21 +08:00
parent 54ce061f24
commit 1dd9f1d67d
No known key found for this signature in database
GPG Key ID: F62181757D8BF693
2 changed files with 58 additions and 0 deletions

View File

@ -0,0 +1,56 @@
{
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;
};
}

View File

@ -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 { };