Files
nixpkgs/pkgs/development/python-modules/marshmallow/default.nix
T
Sergei Zimmerman d329a02f9f marshmallow: fix build on i686-linux
Nix has recently started using this package (transitively via
json-schema-for-humans) in the nix-manual, so it's prudent to fix it
on all supported systems.
2025-11-05 22:35:19 +03: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 = with lib; {
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 = licenses.mit;
maintainers = with maintainers; [ cript0nauta ];
};
}