Something went wrong. Try again.
lol
Something went wrong. Try again.
1.1 kB · 56 lines
Nix
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657{ 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; };}