diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 91a542abd08..6a3c0a3a2ea 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; }; };