···11+{ stdenv22+, buildPythonPackage33+, fetchPypi44+, six55+, traceback266+}:77+88+buildPythonPackage rec {99+ version = "1.1.0";1010+ pname = "unittest2";1111+1212+ src = fetchPypi {1313+ inherit pname version;1414+ sha256 = "0y855kmx7a8rnf81d3lh5lyxai1908xjp0laf4glwa4c8472m212";1515+ };1616+1717+ propagatedBuildInputs = [ six traceback2 ];1818+1919+ # # 1.0.0 and up create a circle dependency with traceback2/pbr2020+ doCheck = false;2121+2222+ postPatch = ''2323+ # argparse is needed for python < 2.7, which we do not support anymore.2424+ substituteInPlace setup.py --replace "argparse" ""2525+2626+ # # fixes a transient error when collecting tests, see https://bugs.launchpad.net/python-neutronclient/+bug/15085472727+ sed -i '510i\ return None, False' unittest2/loader.py2828+ # https://github.com/pypa/packaging/pull/362929+ sed -i 's/version=VERSION/version=str(VERSION)/' setup.py3030+ '';3131+3232+ meta = with stdenv.lib; {3333+ description = "A backport of the new features added to the unittest testing framework";3434+ homepage = https://pypi.python.org/pypi/unittest2;3535+ license = licenses.bsd0;3636+ };3737+3838+}
+1-29
pkgs/top-level/python-packages.nix
···4045404540464046 unicodecsv = callPackage ../development/python-modules/unicodecsv { };4047404740484048- unittest2 = buildPythonPackage rec {40494049- version = "1.1.0";40504050- name = "unittest2-${version}";40514051-40524052- src = pkgs.fetchurl {40534053- url = "mirror://pypi/u/unittest2/unittest2-${version}.tar.gz";40544054- sha256 = "0y855kmx7a8rnf81d3lh5lyxai1908xjp0laf4glwa4c8472m212";40554055- };40564056-40574057- # # 1.0.0 and up create a circle dependency with traceback2/pbr40584058- doCheck = false;40594059-40604060- postPatch = ''40614061- # argparse is needed for python < 2.7, which we do not support anymore.40624062- substituteInPlace setup.py --replace "argparse" ""40634063-40644064- # # fixes a transient error when collecting tests, see https://bugs.launchpad.net/python-neutronclient/+bug/150854740654065- sed -i '510i\ return None, False' unittest2/loader.py40664066- # https://github.com/pypa/packaging/pull/3640674067- sed -i 's/version=VERSION/version=str(VERSION)/' setup.py40684068- '';40694069-40704070- propagatedBuildInputs = with self; [ six traceback2 ];40714071-40724072- meta = {40734073- description = "A backport of the new features added to the unittest testing framework";40744074- homepage = https://pypi.python.org/pypi/unittest2;40754075- };40764076- };40484048+ unittest2 = callPackage ../development/python-modules/unittest2 { };4077404940784050 unittest-xml-reporting = callPackage ../development/python-modules/unittest-xml-reporting { };40794051