2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, buildPythonPackage, fetchPypi, isPy3k, funcsigs, pytest, numpy }:
|
2018-12-08 19:55:37 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2020-09-30 15:08:12 +01:00
|
|
|
version = "1.2.2";
|
2018-12-08 19:55:37 +00:00
|
|
|
pname = "mockito";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-09-30 15:08:12 +01:00
|
|
|
sha256 = "d6b3aca6cdb92bbd47e19ebdb1a0b84ef23ab874eae5c6d505323c8657257c06";
|
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
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-12-08 19:55:37 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|