nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 48 lines 1.1 kB view raw
1{ 2 lib, 3 stdenv, 4 buildPythonPackage, 5 fetchFromGitHub, 6 7 # build-system 8 flit-core, 9 10 # tests 11 pytestCheckHook, 12 simplejson, 13}: 14 15buildPythonPackage rec { 16 pname = "marshmallow"; 17 version = "4.2.0"; 18 pyproject = true; 19 20 src = fetchFromGitHub { 21 owner = "marshmallow-code"; 22 repo = "marshmallow"; 23 tag = version; 24 hash = "sha256-UrkaKQUZ4fjemaAqd+T5nD5S1vuS1AS1CNZVDhJY9Y8="; 25 }; 26 27 build-system = [ flit-core ]; 28 29 nativeCheckInputs = [ 30 pytestCheckHook 31 simplejson 32 ]; 33 34 disabledTests = lib.optionals stdenv.hostPlatform.isx86_32 [ 35 # Raises a slightly different error than upstream expects: 'Timestamp is too large' instead of 'out of range' 36 "test_from_timestamp_with_overflow_value" 37 ]; 38 39 pythonImportsCheck = [ "marshmallow" ]; 40 41 meta = { 42 description = "Library for converting complex objects to and from simple Python datatypes"; 43 homepage = "https://github.com/marshmallow-code/marshmallow"; 44 changelog = "https://github.com/marshmallow-code/marshmallow/blob/${version}/CHANGELOG.rst"; 45 license = lib.licenses.mit; 46 maintainers = with lib.maintainers; [ cript0nauta ]; 47 }; 48}