depot/third_party/nixpkgs/pkgs/development/python-modules/marshmallow/default.nix
Default email 23b612e36f Project import generated by Copybara.
GitOrigin-RevId: ae5c332cbb5827f6b1f02572496b141021de335f
2024-01-25 23:12:00 +09:00

51 lines
1 KiB
Nix

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