summaryrefslogtreecommitdiffstats
path: root/pkgs/development/python-modules/json-stream/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/json-stream/default.nix')
-rw-r--r--pkgs/development/python-modules/json-stream/default.nix39
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/json-stream/default.nix b/pkgs/development/python-modules/json-stream/default.nix
new file mode 100644
index 000000000000..4ae01488db69
--- /dev/null
+++ b/pkgs/development/python-modules/json-stream/default.nix
@@ -0,0 +1,39 @@
+{ lib
+, buildPythonPackage
+, fetchPypi
+, pytestCheckHook
+, pythonOlder
+, requests
+}:
+
+buildPythonPackage rec {
+ pname = "json-stream";
+ version = "1.3.0";
+ format = "pyproject";
+
+ disabled = pythonOlder "3.7";
+
+ src = fetchPypi {
+ inherit pname version;
+ hash = "sha256-J5DBa8zeandkDIXpEaRN6cneZIIG2aRHS5zjmM/H0Uw=";
+ };
+
+ propagatedBuildInputs = [
+ requests
+ ];
+
+ checkInputs = [
+ pytestCheckHook
+ ];
+
+ pythonImportsCheck = [
+ "json_stream"
+ ];
+
+ meta = with lib; {
+ description = "Streaming JSON parser";
+ homepage = "https://github.com/daggaz/json-stream";
+ license = with licenses; [ mit ];
+ maintainers = with maintainers; [ fab ];
+ };
+}