2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-15 20:55:39 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, nose
|
|
|
|
, isPy3k
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "fudge";
|
2018-10-24 13:44:31 +01:00
|
|
|
version = "1.1.1";
|
2018-10-15 20:55:39 +01:00
|
|
|
disabled = isPy3k;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-10-24 13:44:31 +01:00
|
|
|
sha256 = "1p7g6hv9qxscbzjv2n5pczpkkp55mp3s56adfc912w9qpf3rv4nr";
|
2018-10-15 20:55:39 +01:00
|
|
|
};
|
|
|
|
|
2019-03-02 13:41:48 +00:00
|
|
|
checkInputs = [ nose ];
|
2018-10-15 20:55:39 +01:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
nosetests -v
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/fudge-py/fudge";
|
2018-10-15 20:55:39 +01:00
|
|
|
description = "Replace real objects with fakes (mocks, stubs, etc) while testing";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|