Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.3 kB · 61 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162{ lib, buildPythonPackage, ciso8601, fetchFromGitHub, msgpack, orjson, pendulum, pytest-mock, pytestCheckHook, pythonOlder, pyyaml, setuptools, tomli, tomli-w, typing-extensions,}:
buildPythonPackage rec { pname = "mashumaro"; version = "3.15"; pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub { owner = "Fatal1ty"; repo = "mashumaro"; tag = "v${version}"; hash = "sha256-Zv2FijxYOLGflJ3bc3udkM3SXgHHzHIeCGHlfybyLGE="; };
build-system = [ setuptools ];
dependencies = [ typing-extensions ];
optional-dependencies = { orjson = [ orjson ]; msgpack = [ msgpack ]; yaml = [ pyyaml ]; toml = [ tomli-w ] ++ lib.optionals (pythonOlder "3.11") [ tomli ]; };
nativeCheckInputs = [ ciso8601 pendulum pytest-mock pytestCheckHook ] ++ lib.flatten (lib.attrValues optional-dependencies);
pythonImportsCheck = [ "mashumaro" ];
meta = with lib; { description = "Serialization library on top of dataclasses"; homepage = "https://github.com/Fatal1ty/mashumaro"; changelog = "https://github.com/Fatal1ty/mashumaro/releases/tag/v${version}"; license = licenses.asl20; maintainers = with maintainers; [ tjni ]; };}