b79da2786f
Conflicts: pkgs/development/python-modules/bundlewrap/default.nix pkgs/development/python-modules/coverage/default.nix pkgs/development/python-modules/h5netcdf/default.nix pkgs/development/python-modules/hypothesis/default.nix pkgs/development/python-modules/numba/default.nix pkgs/development/python-modules/optype/default.nix pkgs/development/python-modules/setuptools-git-versioning/default.nix pkgs/development/python-modules/sphinx/default.nix
49 lines
1.1 KiB
Nix
49 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
|
|
# build-system
|
|
flit-core,
|
|
|
|
# tests
|
|
pytestCheckHook,
|
|
simplejson,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "marshmallow";
|
|
version = "4.2.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "marshmallow-code";
|
|
repo = "marshmallow";
|
|
tag = version;
|
|
hash = "sha256-UrkaKQUZ4fjemaAqd+T5nD5S1vuS1AS1CNZVDhJY9Y8=";
|
|
};
|
|
|
|
build-system = [ flit-core ];
|
|
|
|
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 ];
|
|
};
|
|
}
|