1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5, pythonOlder 6, pytz 7, simplejson 8, packaging 9}: 10 11buildPythonPackage rec { 12 pname = "marshmallow"; 13 version = "3.20.1"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.8"; 17 18 src = fetchFromGitHub { 19 owner = "marshmallow-code"; 20 repo = pname; 21 rev = "refs/tags/${version}"; 22 hash = "sha256-sPYiup7ontnubtBxv+rIT0up4IHPJNCUlH9J4FlHsss="; 23 }; 24 25 propagatedBuildInputs = [ 26 packaging 27 ]; 28 29 nativeCheckInputs = [ 30 pytestCheckHook 31 pytz 32 simplejson 33 ]; 34 35 pythonImportsCheck = [ 36 "marshmallow" 37 ]; 38 39 meta = with lib; { 40 description = "Library for converting complex objects to and from simple Python datatypes"; 41 homepage = "https://github.com/marshmallow-code/marshmallow"; 42 changelog = "https://github.com/marshmallow-code/marshmallow/blob/${version}/CHANGELOG.rst"; 43 license = licenses.mit; 44 maintainers = with maintainers; [ cript0nauta ]; 45 }; 46}