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 000000000000..7c6e3589600d --- /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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 49b5d629e9a8..6d73b8d73365 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8998,6 +8998,8 @@ in { webtest = callPackage ../development/python-modules/webtest { }; + webtest-aiohttp = callPackage ../development/python-modules/webtest-aiohttp { }; + webthing = callPackage ../development/python-modules/webthing { }; werkzeug = callPackage ../development/python-modules/werkzeug {