depot/third_party/nixpkgs/pkgs/development/python-modules/marshmallow-oneofschema/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

47 lines
1 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, marshmallow
, pytestCheckHook
, pythonOlder
, flit-core
}:
buildPythonPackage rec {
pname = "marshmallow-oneofschema";
version = "3.1.1";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "marshmallow-code";
repo = "marshmallow-oneofschema";
rev = "refs/tags/${version}";
hash = "sha256-HXuyUxU8bT5arpUzmgv7m+X2fNT0qHY8S8Rz6klOGiA=";
};
nativeBuildInputs = [
flit-core
];
propagatedBuildInputs = [
marshmallow
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"marshmallow_oneofschema"
];
meta = with lib; {
description = "Marshmallow library extension that allows schema (de)multiplexing";
changelog = "https://github.com/marshmallow-code/marshmallow-oneofschema/blob/${version}/CHANGELOG.rst";
homepage = "https://github.com/marshmallow-code/marshmallow-oneofschema";
license = licenses.mit;
maintainers = with maintainers; [ ivan-tkatchev ];
};
}