1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 marshmallow, 6 pythonOlder, 7 pytestCheckHook, 8 pytest-cov-stub, 9 setuptools, 10}: 11 12buildPythonPackage rec { 13 pname = "marshmallow-polyfield"; 14 version = "5.11"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.6"; 18 19 src = fetchFromGitHub { 20 owner = "Bachmann1234"; 21 repo = "marshmallow-polyfield"; 22 tag = "v${version}"; 23 hash = "sha256-jbpeyih2Ccw1Rk+QcXRO9AfN5B/DhZmxa/M6FzXHqqs="; 24 }; 25 26 build-system = [ setuptools ]; 27 28 dependencies = [ marshmallow ]; 29 30 nativeCheckInputs = [ 31 pytestCheckHook 32 pytest-cov-stub 33 ]; 34 35 pythonImportsCheck = [ "marshmallow" ]; 36 37 meta = with lib; { 38 description = "Extension to Marshmallow to allow for polymorphic fields"; 39 homepage = "https://github.com/Bachmann1234/marshmallow-polyfield"; 40 license = licenses.asl20; 41 maintainers = with maintainers; [ drewrisinger ]; 42 }; 43}