2018-12-08 19:55:37 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, isPy3k, funcsigs, pytest, numpy }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2019-12-19 19:31:15 +00:00
|
|
|
version = "1.2.0";
|
2018-12-08 19:55:37 +00:00
|
|
|
pname = "mockito";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-12-19 19:31:15 +00:00
|
|
|
sha256 = "2a1cbae9d0aef4ae7586b03f2a463e8c5ba96aa937c0535ced4a5621f851feeb";
|
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";
|
|
|
|
homepage = https://github.com/kaste/mockito-python;
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.marsam ];
|
|
|
|
};
|
|
|
|
}
|