about summary refs log tree commit diff
path: root/pkgs/development/python-modules/webtest-aiohttp
diff options
context:
space:
mode:
authorMatías Lang <matiasl@infobytesec.com>2020-06-28 00:26:29 -0300
committerMatías Lang <shareman1204@gmail.com>2021-06-24 02:38:02 -0300
commitbd223b0dbdbebbc2d9ec6dfa6c8cdf500291eb68 (patch)
tree19d76191c9dacef896b7c2d2e1f1f99b16e15d07 /pkgs/development/python-modules/webtest-aiohttp
parenteea216fede56d1410a9f416afd4829216d9bed9f (diff)
pythonPackages.webtest-aiohttp: init at 2.0.0
Diffstat (limited to 'pkgs/development/python-modules/webtest-aiohttp')
-rw-r--r--pkgs/development/python-modules/webtest-aiohttp/default.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/webtest-aiohttp/default.nix b/pkgs/development/python-modules/webtest-aiohttp/default.nix
new file mode 100644
index 0000000000000..7c6e3589600d8
--- /dev/null
+++ b/pkgs/development/python-modules/webtest-aiohttp/default.nix
@@ -0,0 +1,29 @@
+{ buildPythonPackage, fetchFromGitHub, lib, isPy27, webtest, invoke, flake8
+, aiohttp, pytest-aiohttp, pytestCheckHook }:
+
+buildPythonPackage rec {
+  pname = "webtest-aiohttp";
+  version = "2.0.0";
+  disabled = isPy27;
+
+  src = fetchFromGitHub {
+    owner = "sloria";
+    repo = pname;
+    rev = version;
+    sha256 = "1apr1x0wmnc6l8wv67z4dp00fiiygda6rwpxlspfk7nk9zz37q2j";
+  };
+
+  pythonImportsCheck = [
+    "webtest_aiohttp"
+  ];
+
+  propagatedBuildInputs = [ webtest ];
+  checkInputs = [ invoke flake8 aiohttp pytest-aiohttp pytestCheckHook ];
+
+  meta = with lib; {
+    description = "Provides integration of WebTest with aiohttp.web applications";
+    homepage = "https://github.com/sloria/webtest-aiohttp";
+    license = licenses.mit;
+    maintainers = with maintainers; [ cript0nauta ];
+  };
+}