pythonPacakges.flaky: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-16 14:58:18 -04:00 committed by Frederik Rietdijk
parent 40cfaacf0d
commit 1a76b2c7f8
2 changed files with 29 additions and 20 deletions

View File

@ -0,0 +1,28 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, mock
, pytest
}:
buildPythonPackage rec {
pname = "flaky";
version = "3.1.0";
src = fetchPypi {
inherit pname version;
sha256 = "1x9ixika7wqjj52x8wnsh1vk7jadkdqpx01plj7mlh8slwyq4s41";
};
buildInputs = [ mock pytest ];
# waiting for feedback https://github.com/box/flaky/issues/97
doCheck = false;
meta = with stdenv.lib; {
homepage = https://github.com/box/flaky;
description = "Plugin for nose or py.test that automatically reruns flaky tests";
license = licenses.asl20;
};
}

View File

@ -2400,26 +2400,7 @@ in {
flake8-import-order = callPackage ../development/python-modules/flake8-import-order { }; flake8-import-order = callPackage ../development/python-modules/flake8-import-order { };
flaky = buildPythonPackage rec { flaky = callPackage ../development/python-modules/flaky { };
name = "flaky-${version}";
version = "3.1.0";
src = pkgs.fetchurl {
url = "mirror://pypi/f/flaky/${name}.tar.gz";
sha256 = "1x9ixika7wqjj52x8wnsh1vk7jadkdqpx01plj7mlh8slwyq4s41";
};
buildInputs = with self; [ mock pytest ];
# waiting for feedback https://github.com/box/flaky/issues/97
doCheck = false;
meta = {
homepage = https://github.com/box/flaky;
description = "Plugin for nose or py.test that automatically reruns flaky tests";
license = licenses.asl20;
};
};
flask = callPackage ../development/python-modules/flask { }; flask = callPackage ../development/python-modules/flask { };