From 0ddf3fe7d857f9037d61240f5944e0e6782a5178 Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Tue, 7 May 2019 08:53:44 -0400 Subject: [PATCH] pythonPackages.pytest-sanic: init at 1.0.0 --- .../python-modules/pytest-sanic/default.nix | 33 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 35 insertions(+) create mode 100644 pkgs/development/python-modules/pytest-sanic/default.nix diff --git a/pkgs/development/python-modules/pytest-sanic/default.nix b/pkgs/development/python-modules/pytest-sanic/default.nix new file mode 100644 index 000000000000..c760b6a5542a --- /dev/null +++ b/pkgs/development/python-modules/pytest-sanic/default.nix @@ -0,0 +1,33 @@ +{ lib +, buildPythonPackage +, fetchPypi +, pytest +, aiohttp +, async_generator +}: + +buildPythonPackage rec { + pname = "pytest-sanic"; + version = "1.0.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "0vlaq6p9g2p1xj9wshmin58p1faf5h9rcxvmjapx26zv8n23rnm1"; + }; + + propagatedBuildInputs = [ + pytest + aiohttp + async_generator + ]; + + # circular dependency on sanic + doCheck = false; + + meta = with lib; { + description = "A pytest plugin for Sanic"; + homepage = https://github.com/yunstanford/pytest-sanic/; + license = licenses.asl20; + maintainers = [ maintainers.costrouc ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index cb4a7b35ce4a..a42f9486bec8 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1654,6 +1654,8 @@ in { pytest-relaxed = callPackage ../development/python-modules/pytest-relaxed { }; + pytest-sanic = callPackage ../development/python-modules/pytest-sanic { }; + pytest-flake8 = callPackage ../development/python-modules/pytest-flake8 { }; pytest-flakes = callPackage ../development/python-modules/pytest-flakes { };