2018-10-15 21:55:39 +02:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, nose
|
|
|
|
, nosejs
|
|
|
|
, sphinx
|
|
|
|
, isPy3k
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "fudge";
|
2018-10-24 14:44:31 +02:00
|
|
|
version = "1.1.1";
|
2018-10-15 21:55:39 +02:00
|
|
|
disabled = isPy3k;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-10-24 14:44:31 +02:00
|
|
|
sha256 = "1p7g6hv9qxscbzjv2n5pczpkkp55mp3s56adfc912w9qpf3rv4nr";
|
2018-10-15 21:55:39 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ nose nosejs ];
|
|
|
|
propagatedBuildInputs = [ sphinx ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
nosetests -v
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/fudge-py/fudge;
|
|
|
|
description = "Replace real objects with fakes (mocks, stubs, etc) while testing";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|