nixpkgs/pkgs/development/python-modules/mockito/default.nix
2019-12-30 16:46:44 +01:00

29 lines
669 B
Nix

{ stdenv, buildPythonPackage, fetchPypi, isPy3k, funcsigs, pytest, numpy }:
buildPythonPackage rec {
version = "1.2.0";
pname = "mockito";
src = fetchPypi {
inherit pname version;
sha256 = "2a1cbae9d0aef4ae7586b03f2a463e8c5ba96aa937c0535ced4a5621f851feeb";
};
# 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 ];
};
}