3a4df29a92
GitOrigin-RevId: 3d7435c638baffaa826b85459df0fff47f12317d
43 lines
863 B
Nix
43 lines
863 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, marshmallow
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, setuptools
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "marshmallow-oneofschema";
|
|
version = "3.0.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "marshmallow-code";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-x0v8WkfjGkP2668QIQiewQViYFDIS2zBWMULcDThWas=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
marshmallow
|
|
setuptools
|
|
];
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"marshmallow_oneofschema"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Marshmallow library extension that allows schema (de)multiplexing";
|
|
homepage = "https://github.com/marshmallow-code/marshmallow-oneofschema";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ ivan-tkatchev ];
|
|
};
|
|
}
|