1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, marshmallow 5, pytestCheckHook 6, pythonOlder 7, setuptools 8}: 9 10buildPythonPackage rec { 11 pname = "marshmallow-oneofschema"; 12 version = "3.0.1"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.6"; 16 17 src = fetchFromGitHub { 18 owner = "marshmallow-code"; 19 repo = pname; 20 rev = version; 21 hash = "sha256-x0v8WkfjGkP2668QIQiewQViYFDIS2zBWMULcDThWas="; 22 }; 23 24 propagatedBuildInputs = [ 25 marshmallow 26 setuptools 27 ]; 28 29 checkInputs = [ 30 pytestCheckHook 31 ]; 32 33 pythonImportsCheck = [ 34 "marshmallow_oneofschema" 35 ]; 36 37 meta = with lib; { 38 description = "Marshmallow library extension that allows schema (de)multiplexing"; 39 homepage = "https://github.com/marshmallow-code/marshmallow-oneofschema"; 40 license = licenses.mit; 41 maintainers = with maintainers; [ ivan-tkatchev ]; 42 }; 43}