Merge pull request #293230 from r-ryantm/auto-update/python312Packages.mockito
python312Packages.mockito: 1.4.0 -> 1.5.0
This commit is contained in:
commit
fdf0b2d33c
@ -1,27 +1,39 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, isPy3k, funcsigs, pytest, numpy }:
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, hatchling
|
||||
, numpy
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "1.4.0";
|
||||
format = "setuptools";
|
||||
pname = "mockito";
|
||||
version = "1.5.0";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-QJq2BMnr4bt9wY7GsO2YqK1RJ7CCc/WASyL00bUeUiI=";
|
||||
hash = "sha256-A2Eo2n2vLaiaC2N71zMh6ZL/ZbqKOYdsojPuwX63fo8=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = lib.optionals (!isPy3k) [ funcsigs ];
|
||||
nativeCheckInputs = [ pytest numpy ];
|
||||
nativeBuildInputs = [
|
||||
hatchling
|
||||
];
|
||||
|
||||
# tests are no longer packaged in pypi tarball
|
||||
doCheck = false;
|
||||
checkPhase = ''
|
||||
pytest
|
||||
'';
|
||||
nativeCheckInputs = [
|
||||
numpy
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "mockito" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Spying framework";
|
||||
homepage = "https://github.com/kaste/mockito-python";
|
||||
changelog = "https://github.com/kaste/mockito-python/blob/${version}/CHANGES.txt";
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.marsam ];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user