From bc02955b2a4e9d6d39b81322702f9290b55c9bdc Mon Sep 17 00:00:00 2001 From: Chuck Date: Thu, 3 Dec 2020 11:08:17 -0800 Subject: [PATCH] python3Packages.jsonstreams: Init at 0.5.0 --- .../python-modules/jsonstreams/default.nix | 25 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 27 insertions(+) create mode 100644 pkgs/development/python-modules/jsonstreams/default.nix diff --git a/pkgs/development/python-modules/jsonstreams/default.nix b/pkgs/development/python-modules/jsonstreams/default.nix new file mode 100644 index 000000000000..9042498664a8 --- /dev/null +++ b/pkgs/development/python-modules/jsonstreams/default.nix @@ -0,0 +1,25 @@ +{ lib, buildPythonPackage, fetchFromGitHub, pytestCheckHook, six, }: + +buildPythonPackage rec { + pname = "jsonstreams"; + version = "0.5.0"; + + src = fetchFromGitHub { + owner = "dcbaker"; + repo = pname; + rev = version; + sha256 = "0c85fdqkj5k4b0v0ngx2d9qbmzdsvglh4j9k9h7508bvn7l8fa4b"; + }; + + propagatedBuildInputs = [ six ]; + + checkInputs = [ pytestCheckHook ]; + pytestFlagsArray = [ "tests --doctest-modules jsonstreams" ]; + + meta = with lib; { + description = "A JSON streaming writer"; + homepage = "https://github.com/dcbaker/jsonstreams"; + license = licenses.mit; + maintainers = with maintainers; [ chkno ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 75d4245abe23..907e74c23c3c 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3186,6 +3186,8 @@ in { jsonschema = callPackage ../development/python-modules/jsonschema { }; + jsonstreams = callPackage ../development/python-modules/jsonstreams { }; + jsonwatch = callPackage ../development/python-modules/jsonwatch { }; jug = callPackage ../development/python-modules/jug { };