Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
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.19.0"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.6"; 17 18 src = fetchFromGitHub { 19 owner = "marshmallow-code"; 20 repo = pname; 21 rev = version; 22 hash = "sha256-b1brLHM48t45bwUXk7QreLLmvTzU0sX7Uoc1ZAgGkrE="; 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 changelog = "https://github.com/marshmallow-code/marshmallow/blob/${src.rev}/CHANGELOG.rst"; 41 description = "Library for converting complex objects to and from simple Python datatypes"; 42 homepage = "https://github.com/marshmallow-code/marshmallow"; 43 license = licenses.mit; 44 maintainers = with maintainers; [ cript0nauta ]; 45 }; 46}