Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 37 lines 956 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 marshmallow, 6 pytestCheckHook, 7 flit-core, 8}: 9 10buildPythonPackage rec { 11 pname = "marshmallow-oneofschema"; 12 version = "3.2.0"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "marshmallow-code"; 17 repo = "marshmallow-oneofschema"; 18 tag = version; 19 hash = "sha256-Hk36wxZV1hVqIbqDOkEDlqABRKE6s/NyA/yBEXzj/yM="; 20 }; 21 22 nativeBuildInputs = [ flit-core ]; 23 24 propagatedBuildInputs = [ marshmallow ]; 25 26 nativeCheckInputs = [ pytestCheckHook ]; 27 28 pythonImportsCheck = [ "marshmallow_oneofschema" ]; 29 30 meta = { 31 description = "Marshmallow library extension that allows schema (de)multiplexing"; 32 changelog = "https://github.com/marshmallow-code/marshmallow-oneofschema/blob/${version}/CHANGELOG.rst"; 33 homepage = "https://github.com/marshmallow-code/marshmallow-oneofschema"; 34 license = lib.licenses.mit; 35 maintainers = with lib.maintainers; [ ivan-tkatchev ]; 36 }; 37}