8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
27 lines
678 B
Nix
27 lines
678 B
Nix
{ stdenv, buildPythonPackage, fetchPypi, isPy3k, funcsigs, pytest, numpy }:
|
|
|
|
buildPythonPackage rec {
|
|
version = "1.2.1";
|
|
pname = "mockito";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "1ilj73bdk81v4l7ir6hbfvmslzbsxkgvz1asngbyf7w5gl2y5nyf";
|
|
};
|
|
|
|
propagatedBuildInputs = stdenv.lib.optionals (!isPy3k) [ funcsigs ];
|
|
checkInputs = [ pytest numpy ];
|
|
|
|
# tests are no longer packaged in pypi tarball
|
|
doCheck = false;
|
|
checkPhase = ''
|
|
pytest
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Spying framework";
|
|
homepage = "https://github.com/kaste/mockito-python";
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.marsam ];
|
|
};
|
|
}
|