Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657{ lib, buildPythonPackage, ciso8601, fetchFromGitHub, msgpack, orjson, pendulum, pytest-mock, pytestCheckHook, pyyaml, setuptools, tomli-w, typing-extensions,}:
buildPythonPackage rec { pname = "mashumaro"; version = "3.22"; pyproject = true;
src = fetchFromGitHub { owner = "Fatal1ty"; repo = "mashumaro"; tag = "v${version}"; hash = "sha256-/aAyylHOEjSmcjb+OKDNY0OOlR2JXepvVpVsfGbKSyw="; };
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; };}