summary refs log tree commit diff
path: root/pkgs/development/python-modules/aioresponses
diff options
context:
space:
mode:
authorRodney Lorrimar <dev@rodney.id.au>2019-03-23 10:03:13 +1000
committerRobert Schütz <robert.schuetz@stud.uni-heidelberg.de>2019-04-11 18:05:41 +0200
commit8b4269bc1e167a3a69e9fb28724d25d02d127efb (patch)
treebd0cfa58800725a3c086afd136fe0436f96a7c64 /pkgs/development/python-modules/aioresponses
parenta110fdf216637bc27d3787745e4055d4a3c3e46f (diff)
downloadnixpkgs-8b4269bc1e167a3a69e9fb28724d25d02d127efb.tar
nixpkgs-8b4269bc1e167a3a69e9fb28724d25d02d127efb.tar.gz
nixpkgs-8b4269bc1e167a3a69e9fb28724d25d02d127efb.tar.bz2
nixpkgs-8b4269bc1e167a3a69e9fb28724d25d02d127efb.tar.lz
nixpkgs-8b4269bc1e167a3a69e9fb28724d25d02d127efb.tar.xz
nixpkgs-8b4269bc1e167a3a69e9fb28724d25d02d127efb.tar.zst
nixpkgs-8b4269bc1e167a3a69e9fb28724d25d02d127efb.zip
pythonPackages.aioresponses: init at 0.6.0
Diffstat (limited to 'pkgs/development/python-modules/aioresponses')
-rw-r--r--pkgs/development/python-modules/aioresponses/default.nix47
1 files changed, 47 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/aioresponses/default.nix b/pkgs/development/python-modules/aioresponses/default.nix
new file mode 100644
index 00000000000..55120ad5803
--- /dev/null
+++ b/pkgs/development/python-modules/aioresponses/default.nix
@@ -0,0 +1,47 @@
+{ lib
+, buildPythonPackage
+, fetchPypi
+, pythonOlder
+, pbr
+, aiohttp
+, ddt
+, asynctest
+, pytest
+}:
+
+buildPythonPackage rec {
+  pname = "aioresponses";
+  version = "0.6.0";
+  disabled = pythonOlder "3.5";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "0ii1jiwb8qa2y8cqa1zqn7mjax9l8bpf16k4clv616mxw1l0bvs6";
+  };
+
+  nativeBuildInputs = [
+    pbr
+  ];
+
+  propagatedBuildInputs = [
+    aiohttp
+  ];
+
+  checkInputs = [
+    asynctest
+    ddt
+    pytest
+  ];
+
+  # Skip a test which makes requests to httpbin.org
+  checkPhase = ''
+    pytest -k "not test_address_as_instance_of_url_combined_with_pass_through"
+  '';
+
+  meta = {
+    description = "A helper to mock/fake web requests in python aiohttp package";
+    homepage = https://github.com/pnuckowski/aioresponses;
+    license = lib.licenses.mit;
+    maintainers = with lib.maintainers; [ rvl ];
+  };
+}