nixpkgs/pkgs/development/python-modules/mockito/default.nix

28 lines
673 B
Nix
Raw Normal View History

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