1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 bson, 6 pytestCheckHook, 7 pytest-cov-stub, 8 pyyaml, 9 setuptools, 10}: 11 12buildPythonPackage rec { 13 pname = "pymarshal"; 14 version = "2.2.1"; 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "stargateaudio"; 19 repo = "pymarshal"; 20 rev = version; 21 hash = "sha256-o+eWa3XFDFn+fyVxWOI9LbKqBUVsYR8O7J4sFbSGvEg="; 22 }; 23 24 postPatch = '' 25 substituteInPlace setup.py \ 26 --replace-fail "'pytest-runner'" "" 27 ''; 28 29 build-system = [ setuptools ]; 30 31 dependencies = [ bson ]; 32 33 nativeCheckInputs = [ 34 pytestCheckHook 35 pytest-cov-stub 36 bson 37 pyyaml 38 ]; 39 40 enabledTestPaths = [ "test" ]; 41 42 meta = { 43 description = "Python data serialization library"; 44 homepage = "https://github.com/stargateaudio/pymarshal"; 45 maintainers = with lib.maintainers; [ ]; 46 license = lib.licenses.bsd2; 47 }; 48}