depot/third_party/nixpkgs/pkgs/development/python-modules/mockito/default.nix
Default email ae91cbe6cc Project import generated by Copybara.
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
2021-02-05 18:12:51 +01:00

27 lines
673 B
Nix

{ lib, buildPythonPackage, fetchPypi, isPy3k, funcsigs, pytest, numpy }:
buildPythonPackage rec {
version = "1.2.2";
pname = "mockito";
src = fetchPypi {
inherit pname version;
sha256 = "d6b3aca6cdb92bbd47e19ebdb1a0b84ef23ab874eae5c6d505323c8657257c06";
};
propagatedBuildInputs = lib.optionals (!isPy3k) [ funcsigs ];
checkInputs = [ pytest numpy ];
# tests are no longer packaged in pypi tarball
doCheck = false;
checkPhase = ''
pytest
'';
meta = with lib; {
description = "Spying framework";
homepage = "https://github.com/kaste/mockito-python";
license = licenses.mit;
maintainers = [ maintainers.marsam ];
};
}