From aca3198c70084beec4fcd5d49bd3f8ead0a0e10a Mon Sep 17 00:00:00 2001 From: Sebastian Jordan Date: Fri, 20 Apr 2018 11:32:29 +0200 Subject: nix-prefetch-github: init -> 1.3 --- pkgs/development/python-modules/effect/default.nix | 24 +++++++++++++--------- 1 file changed, 14 insertions(+), 10 deletions(-) (limited to 'pkgs/development/python-modules') diff --git a/pkgs/development/python-modules/effect/default.nix b/pkgs/development/python-modules/effect/default.nix index d5fdf2d3f85d..2738d2283395 100644 --- a/pkgs/development/python-modules/effect/default.nix +++ b/pkgs/development/python-modules/effect/default.nix @@ -1,28 +1,32 @@ { buildPythonPackage , fetchPypi , lib -, attrs , six +, attrs +, pytest +, testtools }: -let +buildPythonPackage rec { + version = "0.11.0"; + pname = "effect"; -version = "0.11.0"; -pname = "effect"; - -in -buildPythonPackage { - inherit version pname; src = fetchPypi { inherit pname version; sha256 = "1q75w4magkqd8ggabhhzzxmxakpdnn0vdg7ygj89zdc9yl7561q6"; }; + checkInputs = [ + pytest + testtools + ]; propagatedBuildInputs = [ six attrs ]; - doCheck = false; + checkPhase = '' + pytest . + ''; meta = with lib; { - description = "pure effects for Python"; + description = "Pure effects for Python"; homepage = https://github.com/python-effect/effect; license = licenses.mit; }; -- cgit 1.4.1