33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
27 lines
666 B
Nix
27 lines
666 B
Nix
{ 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 ];
|
|
nativeCheckInputs = [ 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 ];
|
|
};
|
|
}
|