Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
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.2"; 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-Em2jQmvI5IiWREeOX/JAcdOQlpwP7k+cbCirkh82sf0="; 22 }; 23 24 propagatedBuildInputs = [ 25 marshmallow 26 setuptools 27 ]; 28 29 nativeCheckInputs = [ 30 pytestCheckHook 31 ]; 32 33 pythonImportsCheck = [ 34 "marshmallow_oneofschema" 35 ]; 36 37 meta = with lib; { 38 changelog = "https://github.com/marshmallow-code/marshmallow-oneofschema/blob/${src.rev}/CHANGELOG.rst"; 39 description = "Marshmallow library extension that allows schema (de)multiplexing"; 40 homepage = "https://github.com/marshmallow-code/marshmallow-oneofschema"; 41 license = licenses.mit; 42 maintainers = with maintainers; [ ivan-tkatchev ]; 43 }; 44}