1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pythonOlder 5, bson 6, pytest 7, pytest-cov 8, pytest-runner 9, pytestCheckHook 10, pyyaml 11, setuptools 12}: 13 14buildPythonPackage rec { 15 pname = "pymarshal"; 16 version = "2.2.0"; 17 disabled = pythonOlder "3.0"; 18 19 src = fetchFromGitHub { 20 owner = "stargateaudio"; 21 repo = pname; 22 rev = version; 23 sha256 = "sha256-Ds8JV2mtLRcKXBvPs84Hdj3MxxqpeV5muKCSlAFCj1A="; 24 }; 25 26 nativeBuildInputs = [ 27 setuptools 28 pytest-runner 29 ]; 30 31 propagatedBuildInputs = [ 32 bson 33 ]; 34 35 checkInputs = [ 36 pytestCheckHook 37 bson 38 pytest 39 pytest-cov 40 pyyaml 41 ]; 42 43 pytestFlagsArray = [ "test" ]; 44 45 meta = { 46 description = "Python data serialization library"; 47 homepage = "https://github.com/stargateaudio/pymarshal"; 48 maintainers = with lib.maintainers; [ yuu ]; 49 license = lib.licenses.bsd2; 50 }; 51}