pythonPackages.mockito: init at 1.1.1

This commit is contained in:
Mario Rodas 2018-12-08 14:55:37 -05:00
parent e3a0c05a80
commit 0890aa4d6a
No known key found for this signature in database
GPG Key ID: 325649BCA6D53027
2 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,28 @@
{ stdenv, buildPythonPackage, fetchPypi, isPy3k, funcsigs, pytest, numpy }:
buildPythonPackage rec {
version = "1.1.1";
pname = "mockito";
src = fetchPypi {
inherit pname version;
sha256 = "142f5e8865a422ad2d67b9c67a382e3296e8f1633dbccd0e322180fba7d5303d";
};
# Failing tests due 2to3
doCheck = !isPy3k;
propagatedBuildInputs = stdenv.lib.optionals (!isPy3k) [ funcsigs ];
checkInputs = [ pytest numpy ];
checkPhase = ''
pytest
'';
meta = with stdenv.lib; {
description = "Spying framework";
homepage = https://github.com/kaste/mockito-python;
license = licenses.mit;
maintainers = [ maintainers.marsam ];
};
}

View File

@ -2969,6 +2969,8 @@ in {
mock-open = callPackage ../development/python-modules/mock-open { };
mockito = callPackage ../development/python-modules/mockito { };
modestmaps = callPackage ../development/python-modules/modestmaps { };
# Needed here because moinmoin is loaded as a Python library.