depot/third_party/nixpkgs/pkgs/development/python-modules/mockito/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

28 lines
689 B
Nix

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