2022-05-29 11:10:09 +02:00
|
|
|
{
|
|
|
|
stdenv,
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pytestCheckHook,
|
|
|
|
six,
|
|
|
|
}:
|
2020-12-03 11:08:17 -08:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jsonstreams";
|
2021-06-09 23:31:24 -07:00
|
|
|
version = "0.6.0";
|
2023-12-07 16:53:02 +13:00
|
|
|
format = "setuptools";
|
2020-12-03 11:08:17 -08:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dcbaker";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-06-09 23:31:24 -07:00
|
|
|
sha256 = "0qw74wz9ngz9wiv89vmilbifsbvgs457yn1bxnzhrh7g4vs2wcav";
|
2020-12-03 11:08:17 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ six ];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2020-12-03 11:08:17 -08:00
|
|
|
pytestFlagsArray = [ "tests --doctest-modules jsonstreams" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2022-05-29 11:10:09 +02:00
|
|
|
broken = stdenv.isDarwin;
|
2020-12-03 11:08:17 -08:00
|
|
|
description = "JSON streaming writer";
|
|
|
|
homepage = "https://github.com/dcbaker/jsonstreams";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ chkno ];
|
|
|
|
};
|
|
|
|
}
|