2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
marshmallow,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
flit-core,
|
2022-06-16 17:23:12 +00:00
|
|
|
}:
|
2021-07-14 22:03:04 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "marshmallow-oneofschema";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "3.1.1";
|
|
|
|
pyproject = true;
|
2021-07-14 22:03:04 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "marshmallow-code";
|
2024-04-21 15:54:59 +00:00
|
|
|
repo = "marshmallow-oneofschema";
|
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-HXuyUxU8bT5arpUzmgv7m+X2fNT0qHY8S8Rz6klOGiA=";
|
2021-07-14 22:03:04 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ flit-core ];
|
2024-04-21 15:54:59 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ marshmallow ];
|
2022-06-16 17:23:12 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2021-07-14 22:03:04 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "marshmallow_oneofschema" ];
|
2021-07-14 22:03:04 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Marshmallow library extension that allows schema (de)multiplexing";
|
2024-04-21 15:54:59 +00:00
|
|
|
changelog = "https://github.com/marshmallow-code/marshmallow-oneofschema/blob/${version}/CHANGELOG.rst";
|
2022-06-16 17:23:12 +00:00
|
|
|
homepage = "https://github.com/marshmallow-code/marshmallow-oneofschema";
|
2021-07-14 22:03:04 +00:00
|
|
|
license = licenses.mit;
|
2022-06-16 17:23:12 +00:00
|
|
|
maintainers = with maintainers; [ ivan-tkatchev ];
|
2021-07-14 22:03:04 +00:00
|
|
|
};
|
|
|
|
}
|