git.iko.soy/typeable/nixpkgs
on master help sign in
pythonPackages.aioresponses: init at 0.6.0
commit8b4269bc1e167a3a69e9fb28724d25d02d127efb authorRodney Lorrimar <dev@rodney.id.au> dateSat 23 Mar 2019, 10:03 (8 years ago) parenta110fdf
2 files changed+49
pkgs/development/python-modules/aioresponses/default.nix+47 pkgs/top-level/python-packages.nix+2
pkgs/development/python-modules/aioresponses/default.nixnew file+47
@@ -0,0 +1,47 @@
1+{ lib
2+, buildPythonPackage
3+, fetchPypi
4+, pythonOlder
5+, pbr
6+, aiohttp
7+, ddt
8+, asynctest
9+, pytest
10+}:
11+
12+buildPythonPackage rec {
13+ pname = "aioresponses";
14+ version = "0.6.0";
15+ disabled = pythonOlder "3.5";
16+
17+ src = fetchPypi {
18+ inherit pname version;
19+ sha256 = "0ii1jiwb8qa2y8cqa1zqn7mjax9l8bpf16k4clv616mxw1l0bvs6";
20+ };
21+
22+ nativeBuildInputs = [
23+ pbr
24+ ];
25+
26+ propagatedBuildInputs = [
27+ aiohttp
28+ ];
29+
30+ checkInputs = [
31+ asynctest
32+ ddt
33+ pytest
34+ ];
35+
36+ # Skip a test which makes requests to httpbin.org
37+ checkPhase = ''
38+ pytest -k "not test_address_as_instance_of_url_combined_with_pass_through"
39+ '';
40+
41+ meta = {
42+ description = "A helper to mock/fake web requests in python aiohttp package";
43+ homepage = https://github.com/pnuckowski/aioresponses;
44+ license = lib.licenses.mit;
45+ maintainers = with lib.maintainers; [ rvl ];
46+ };
47+}
pkgs/top-level/python-packages.nix+2
@@ -921,6 +921,8 @@ in {
921921
922922 aioprocessing = callPackage ../development/python-modules/aioprocessing { };
923923
924+ aioresponses = callPackage ../development/python-modules/aioresponses { };
925+
924926 aiorpcx = callPackage ../development/python-modules/aiorpcx { };
925927
926928 aiounifi = callPackage ../development/python-modules/aiounifi { };