summary refs log tree commit diff
diff options
context:
space:
mode:
authorFernando J Pando <fernando.pando@stelligent.com>2016-08-18 10:54:40 -0400
committerFrederik Rietdijk <fridh@fridh.nl>2016-09-01 11:02:57 +0200
commit202d9e29c3aeea336f9caf22285de92d120d9b7c (patch)
tree8ec3dba59b02b245186ddb391aed163574b6e320
parente84a3524b5eaa03521bfbd5c67caec883ef76011 (diff)
downloadnixlib-202d9e29c3aeea336f9caf22285de92d120d9b7c.tar
nixlib-202d9e29c3aeea336f9caf22285de92d120d9b7c.tar.gz
nixlib-202d9e29c3aeea336f9caf22285de92d120d9b7c.tar.bz2
nixlib-202d9e29c3aeea336f9caf22285de92d120d9b7c.tar.lz
nixlib-202d9e29c3aeea336f9caf22285de92d120d9b7c.tar.xz
nixlib-202d9e29c3aeea336f9caf22285de92d120d9b7c.tar.zst
nixlib-202d9e29c3aeea336f9caf22285de92d120d9b7c.zip
pythonPackages.setuptoolsTrial: 0.5.12 -> 0.6.0
Tested on Linux
- python 2.7
- python 3.5
-rw-r--r--pkgs/top-level/python-packages.nix30
1 files changed, 16 insertions, 14 deletions
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index 91a542abd08c..6a3c0a3a2eac 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -21873,23 +21873,25 @@ in modules // {
     };
   };
 
-
-  setuptoolsTrial = buildPythonPackage {
-    name = "setuptools-trial-0.5.12";
-
+  setuptoolsTrial = buildPythonPackage rec {
+    name = "${pname}-${version}";
+    pname = "setuptools_trial";
+    version = "0.6.0";
     src = pkgs.fetchurl {
-      url = "mirror://pypi/s/setuptools_trial/setuptools_trial-0.5.12.tar.gz";
-      sha256 = "9cc4ca5fd432944eb95e193f28b5a602e8b07201fea4d7077c0976a40f073432";
+      url = "mirror://pypi/s/${pname}/${name}.tar.gz";
+      sha256 = "14220f8f761c48ba1e2526f087195077cf54fad7098b382ce220422f0ff59b12";
     };
-
-    propagatedBuildInputs = with self; [ twisted ];
-
+    buildInputs = with self; [ pytest virtualenv pytestrunner pytest-virtualenv ];
+    propagatedBuildInputs = with self; [ twisted pathlib2 ];
+    postPatch = ''
+      sed -i '12,$d' tests/test_main.py
+    '';
     meta = {
-      description = "Setuptools plug-in that helps run unit tests built with the \"Trial\" framework (from Twisted)";
-
-      homepage = http://allmydata.org/trac/setuptools_trial;
-
-      license = "unspecified"; # !
+      description = "Setuptools plugin that makes unit tests execute with trial instead of pyunit.";
+      homepage = "https://github.com/rutsky/setuptools-trial";
+      license = licenses.bsd2;
+      maintainers = with maintainers; [ ryansydnor nand0p ];
+      platforms   = platforms.all;
     };
   };