Files
nixpkgs/pkgs/development/python-modules/mashumaro/default.nix
T
Martin Weinelt 8ea6bde88d treewide: prune pythonOlder 3.10/3.11
This is a post 3.10 removal cleanup.
2026-02-15 04:33:54 +01:00

57 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
ciso8601,
fetchFromGitHub,
msgpack,
orjson,
pendulum,
pytest-mock,
pytestCheckHook,
pyyaml,
setuptools,
tomli-w,
typing-extensions,
}:
buildPythonPackage rec {
pname = "mashumaro";
version = "3.17";
pyproject = true;
src = fetchFromGitHub {
owner = "Fatal1ty";
repo = "mashumaro";
tag = "v${version}";
hash = "sha256-oQKSIDrIPlY1m63uP9Jxpgf7ruaZpt9uZF4hTso503U=";
};
build-system = [ setuptools ];
dependencies = [ typing-extensions ];
optional-dependencies = {
orjson = [ orjson ];
msgpack = [ msgpack ];
yaml = [ pyyaml ];
toml = [ tomli-w ];
};
nativeCheckInputs = [
ciso8601
pendulum
pytest-mock
pytestCheckHook
]
++ lib.concatAttrValues optional-dependencies;
pythonImportsCheck = [ "mashumaro" ];
meta = {
description = "Serialization library on top of dataclasses";
homepage = "https://github.com/Fatal1ty/mashumaro";
changelog = "https://github.com/Fatal1ty/mashumaro/releases/tag/${src.tag}";
license = lib.licenses.asl20;
};
}