2018-12-08 19:55:37 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, isPy3k, funcsigs, pytest, numpy }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2020-02-24 16:32:00 +00:00
|
|
|
version = "1.2.1";
|
2018-12-08 19:55:37 +00:00
|
|
|
pname = "mockito";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-02-24 16:32:00 +00:00
|
|
|
sha256 = "1ilj73bdk81v4l7ir6hbfvmslzbsxkgvz1asngbyf7w5gl2y5nyf";
|
2018-12-08 19:55:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = stdenv.lib.optionals (!isPy3k) [ funcsigs ];
|
|
|
|
checkInputs = [ pytest numpy ];
|
|
|
|
|
2019-12-22 20:21:21 +00:00
|
|
|
# tests are no longer packaged in pypi tarball
|
|
|
|
doCheck = false;
|
2018-12-08 19:55:37 +00:00
|
|
|
checkPhase = ''
|
|
|
|
pytest
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Spying framework";
|
2020-02-24 16:32:00 +00:00
|
|
|
homepage = "https://github.com/kaste/mockito-python";
|
2018-12-08 19:55:37 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.marsam ];
|
|
|
|
};
|
|
|
|
}
|