Files
nixpkgs/pkgs/development/python-modules/marshmallow/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

48 lines
1.1 KiB
Nix

{
lib,
stdenv,
buildPythonPackage,
fetchFromGitHub,
flit-core,
packaging,
pytestCheckHook,
simplejson,
}:
buildPythonPackage rec {
pname = "marshmallow";
version = "3.26.1";
pyproject = true;
src = fetchFromGitHub {
owner = "marshmallow-code";
repo = "marshmallow";
tag = version;
hash = "sha256-l5pEhv8D6jRlU24SlsGQEkXda/b7KUdP9mAqrZCbl38=";
};
nativeBuildInputs = [ flit-core ];
propagatedBuildInputs = [ packaging ];
nativeCheckInputs = [
pytestCheckHook
simplejson
];
disabledTests = lib.optionals stdenv.hostPlatform.isx86_32 [
# Raises a slightly different error than upstream expects: 'Timestamp is too large' instead of 'out of range'
"test_from_timestamp_with_overflow_value"
];
pythonImportsCheck = [ "marshmallow" ];
meta = {
description = "Library for converting complex objects to and from simple Python datatypes";
homepage = "https://github.com/marshmallow-code/marshmallow";
changelog = "https://github.com/marshmallow-code/marshmallow/blob/${version}/CHANGELOG.rst";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ cript0nauta ];
};
}