diff --git a/pkgs/development/python-modules/testscenarios/default.nix b/pkgs/development/python-modules/testscenarios/default.nix new file mode 100644 index 00000000000..61e2ce5a81e --- /dev/null +++ b/pkgs/development/python-modules/testscenarios/default.nix @@ -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; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 8f18de8d29a..75d37d4eef1 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -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";