pythonPackages.minimock: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-17 11:47:17 -04:00 committed by Frederik Rietdijk
parent d448a1dd57
commit 3c5edb16a7
2 changed files with 27 additions and 18 deletions

View File

@ -0,0 +1,26 @@
{ stdenv
, buildPythonPackage
, fetchurl
, nose
}:
buildPythonPackage rec {
version = "1.2.8";
pname = "minimock";
src = fetchurl {
url = "https://bitbucket.org/jab/minimock/get/${version}.zip";
sha256 = "c88fa8a7120623f23990a7f086a9657f6ced09025a55e3be8649a30b4945441a";
};
buildInputs = [ nose ];
checkPhase = "./test";
meta = with stdenv.lib; {
description = "A minimalistic mocking library for python";
homepage = https://pypi.python.org/pypi/MiniMock;
license = licenses.mit;
};
}

View File

@ -2756,24 +2756,7 @@ in {
milksnake = callPackage ../development/python-modules/milksnake { };
minimock = buildPythonPackage rec {
version = "1.2.8";
name = "minimock-${version}";
src = pkgs.fetchurl {
url = "https://bitbucket.org/jab/minimock/get/${version}.zip";
sha256 = "c88fa8a7120623f23990a7f086a9657f6ced09025a55e3be8649a30b4945441a";
};
buildInputs = with self; [ nose ];
checkPhase = "./test";
meta = {
description = "A minimalistic mocking library for python";
homepage = https://pypi.python.org/pypi/MiniMock;
};
};
minimock = callPackage ../development/python-modules/minimock { };
moviepy = callPackage ../development/python-modules/moviepy { };