pythonPackages.testscenarios: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-28 11:22:32 -04:00
parent 9ed9014ab5
commit 8a9d7350d8
No known key found for this signature in database
GPG Key ID: 9ED59B0AB1EAF573
2 changed files with 25 additions and 17 deletions

View File

@ -0,0 +1,24 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, testtools
}:
buildPythonPackage rec {
pname = "testscenarios";
version = "0.4";
src = fetchPypi {
inherit pname version;
sha256 = "1671jvrvqlmbnc42j7pc5y6vc37q44aiwrq0zic652pxyy2fxvjg";
};
propagatedBuildInputs = [ testtools ];
meta = with stdenv.lib; {
description = "A pyunit extension for dependency injection";
homepage = https://pypi.python.org/pypi/testscenarios;
license = licenses.asl20;
};
}

View File

@ -3947,23 +3947,7 @@ in {
terminaltables = callPackage ../development/python-modules/terminaltables { };
testscenarios = buildPythonPackage rec {
name = "testscenarios-${version}";
version = "0.4";
src = pkgs.fetchurl {
url = "mirror://pypi/t/testscenarios/${name}.tar.gz";
sha256 = "1671jvrvqlmbnc42j7pc5y6vc37q44aiwrq0zic652pxyy2fxvjg";
};
propagatedBuildInputs = with self; [ testtools ];
meta = {
description = "A pyunit extension for dependency injection";
homepage = https://pypi.python.org/pypi/testscenarios;
license = licenses.asl20;
};
};
testscenarios = callPackage ../development/python-modules/testscenarios { };
testpath = buildPythonPackage rec {
pname = "testpath";