mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 10:23:29 +00:00
pythonPackages.mockito: init at 1.1.1
This commit is contained in:
parent
e3a0c05a80
commit
0890aa4d6a
28
pkgs/development/python-modules/mockito/default.nix
Normal file
28
pkgs/development/python-modules/mockito/default.nix
Normal file
@ -0,0 +1,28 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi, isPy3k, funcsigs, pytest, numpy }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "1.1.1";
|
||||
pname = "mockito";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "142f5e8865a422ad2d67b9c67a382e3296e8f1633dbccd0e322180fba7d5303d";
|
||||
};
|
||||
|
||||
# Failing tests due 2to3
|
||||
doCheck = !isPy3k;
|
||||
|
||||
propagatedBuildInputs = stdenv.lib.optionals (!isPy3k) [ funcsigs ];
|
||||
checkInputs = [ pytest numpy ];
|
||||
|
||||
checkPhase = ''
|
||||
pytest
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Spying framework";
|
||||
homepage = https://github.com/kaste/mockito-python;
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.marsam ];
|
||||
};
|
||||
}
|
@ -2969,6 +2969,8 @@ in {
|
||||
|
||||
mock-open = callPackage ../development/python-modules/mock-open { };
|
||||
|
||||
mockito = callPackage ../development/python-modules/mockito { };
|
||||
|
||||
modestmaps = callPackage ../development/python-modules/modestmaps { };
|
||||
|
||||
# Needed here because moinmoin is loaded as a Python library.
|
||||
|
Loading…
Reference in New Issue
Block a user