depot/third_party/nixpkgs/pkgs/development/python-modules/marshmallow/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

46 lines
1,017 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
flit-core,
packaging,
pytestCheckHook,
pythonOlder,
pytz,
simplejson,
}:
buildPythonPackage rec {
pname = "marshmallow";
version = "3.21.1";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "marshmallow-code";
repo = "marshmallow";
rev = "refs/tags/${version}";
hash = "sha256-KhXasYKooZRokRoFlWKOaQzSUe6tXDtUlrf65eGGUi8=";
};
nativeBuildInputs = [ flit-core ];
propagatedBuildInputs = [ packaging ];
nativeCheckInputs = [
pytestCheckHook
pytz
simplejson
];
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 ];
};
}