summary refs log tree commit diff
path: root/pkgs/development/python-modules/pytest-sugar
diff options
context:
space:
mode:
authorChris Ostrouchov <chris.ostrouchov@gmail.com>2019-05-07 08:54:31 -0400
committerChris Ostrouchov <chris.ostrouchov@gmail.com>2019-05-08 07:54:17 -0400
commitbea2b415ec1d97d8b5c5cc08816e837ce299162e (patch)
treec95863ce8e43d0e30fbc9c115b1711484dc30fa2 /pkgs/development/python-modules/pytest-sugar
parent5d930e2dfaa7472f89bce70ce03fd454d3466d5d (diff)
downloadnixpkgs-bea2b415ec1d97d8b5c5cc08816e837ce299162e.tar
nixpkgs-bea2b415ec1d97d8b5c5cc08816e837ce299162e.tar.gz
nixpkgs-bea2b415ec1d97d8b5c5cc08816e837ce299162e.tar.bz2
nixpkgs-bea2b415ec1d97d8b5c5cc08816e837ce299162e.tar.lz
nixpkgs-bea2b415ec1d97d8b5c5cc08816e837ce299162e.tar.xz
nixpkgs-bea2b415ec1d97d8b5c5cc08816e837ce299162e.tar.zst
nixpkgs-bea2b415ec1d97d8b5c5cc08816e837ce299162e.zip
pythonPackages.pytest-sugar: refactor fix broken build
Diffstat (limited to 'pkgs/development/python-modules/pytest-sugar')
-rw-r--r--pkgs/development/python-modules/pytest-sugar/default.nix25
1 files changed, 14 insertions, 11 deletions
diff --git a/pkgs/development/python-modules/pytest-sugar/default.nix b/pkgs/development/python-modules/pytest-sugar/default.nix
index e8b58acd670..5ece578dc25 100644
--- a/pkgs/development/python-modules/pytest-sugar/default.nix
+++ b/pkgs/development/python-modules/pytest-sugar/default.nix
@@ -1,4 +1,10 @@
-{ stdenv, buildPythonPackage, fetchPypi, termcolor, pytest }:
+{ lib
+, buildPythonPackage
+, fetchPypi
+, termcolor
+, pytest
+, packaging
+}:
 
 buildPythonPackage rec {
   pname = "pytest-sugar";
@@ -9,19 +15,16 @@ buildPythonPackage rec {
     sha256 = "fcd87a74b2bce5386d244b49ad60549bfbc4602527797fac167da147983f58ab";
   };
 
-  propagatedBuildInputs = [ termcolor pytest ];
+  propagatedBuildInputs = [
+    termcolor
+    pytest
+    packaging
+  ];
 
-  checkPhase = ''
-    py.test
-  '';
-
-  meta = with stdenv.lib; {
+  meta = with lib; {
     description = "A plugin that changes the default look and feel of py.test";
     homepage = https://github.com/Frozenball/pytest-sugar;
     license = licenses.bsd3;
-
-    # incompatible with pytest 3.5
-    # https://github.com/Frozenball/pytest-sugar/issues/134
-    broken = true; # 2018-04-20
+    maintainers = [ maintainers.costrouc ];
   };
 }