My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/mockito/default.nix

27 lines
660 B

{ lib, buildPythonPackage, fetchPypi, isPy3k, funcsigs, pytest, numpy }:
buildPythonPackage rec {
version = "1.4.0";
pname = "mockito";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-QJq2BMnr4bt9wY7GsO2YqK1RJ7CCc/WASyL00bUeUiI=";
};
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 ];
};
}