python: testresources: 0.2.7 -> 2.0.1

This commit is contained in:
Robert Schütz 2018-07-24 00:12:19 +02:00 committed by Frederik Rietdijk
parent 6ee974baa7
commit 94d87e4c1e
2 changed files with 27 additions and 15 deletions

View File

@ -0,0 +1,26 @@
{ lib, buildPythonPackage, fetchPypi, python
, pbr, fixtures, testtools }:
buildPythonPackage rec {
pname = "testresources";
version = "2.0.1";
src = fetchPypi {
inherit pname version;
sha256 = "ee9d1982154a1e212d4e4bac6b610800bfb558e4fb853572a827bc14a96e4417";
};
buildInputs = [ pbr ];
checkInputs = [ fixtures testtools ];
checkPhase = ''
${python.interpreter} -m testtools.run discover
'';
meta = with lib; {
description = "Pyunit extension for managing expensive test resources";
homepage = https://launchpad.net/testresources;
license = licenses.bsd2;
};
}

View File

@ -13788,21 +13788,7 @@ in {
}; };
}; };
testresources = buildPythonPackage rec { testresources = callPackage ../development/python-modules/testresources { };
name = "testresources-${version}";
version = "0.2.7";
src = pkgs.fetchurl {
url = "mirror://pypi/t/testresources/${name}.tar.gz";
sha256 = "0cbj3plbllyz42c4b5xxgwaa7mml54lakslrn4kkhinxhdri22md";
};
meta = {
description = "Pyunit extension for managing expensive test resources";
homepage = https://pypi.python.org/pypi/testresources/;
license = licenses.bsd2;
};
};
testtools = callPackage ../development/python-modules/testtools { }; testtools = callPackage ../development/python-modules/testtools { };