nixpkgs/pkgs/development/python-modules/flexmock/default.nix

26 lines
546 B
Nix
Raw Normal View History

2018-11-24 13:32:43 +00:00
{ lib
, buildPythonPackage
, fetchPypi
, pytest
}:
buildPythonPackage rec {
pname = "flexmock";
version = "0.10.2";
src = fetchPypi {
inherit pname version;
sha256 = "fe95c8727f4db73dc8f2f7b4548bffe7992440a965fefd60da291abda5352c2b";
};
checkInputs = [ pytest ];
checkPhase = ''
py.test
'';
meta = with lib; {
description = "flexmock is a testing library for Python that makes it easy to create mocks,stubs and fakes.";
homepage = http://flexmock.readthedocs.org;
license = licenses.bsdOriginal;
};
}