1{ 2 stdenv, 3 lib, 4 buildPythonPackage, 5 fetchFromGitHub, 6 pytestCheckHook, 7 six, 8}: 9 10buildPythonPackage rec { 11 pname = "jsonstreams"; 12 version = "0.6.0"; 13 format = "setuptools"; 14 15 src = fetchFromGitHub { 16 owner = "dcbaker"; 17 repo = "jsonstreams"; 18 rev = version; 19 sha256 = "0qw74wz9ngz9wiv89vmilbifsbvgs457yn1bxnzhrh7g4vs2wcav"; 20 }; 21 22 propagatedBuildInputs = [ six ]; 23 24 nativeCheckInputs = [ pytestCheckHook ]; 25 26 pytestFlags = [ "--doctest-modules" ]; 27 28 enabledTestPaths = [ 29 "tests" 30 "jsonstreams" 31 ]; 32 33 meta = with lib; { 34 broken = stdenv.hostPlatform.isDarwin; 35 description = "JSON streaming writer"; 36 homepage = "https://github.com/dcbaker/jsonstreams"; 37 license = licenses.mit; 38 maintainers = with maintainers; [ chkno ]; 39 }; 40}