2019-02-16 00:02:30 -08:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, pytest, pytestrunner, pytestcov, pytest-flakes, pytestpep8, sphinx, six }:
|
2017-10-20 18:12:01 -07:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2017-11-09 03:26:09 -08:00
|
|
|
pname = "python-utils";
|
2018-10-23 21:45:10 -07:00
|
|
|
version = "2.3.0";
|
2017-10-20 18:12:01 -07:00
|
|
|
|
2019-01-22 06:57:35 -08:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "34aaf26b39b0b86628008f2ae0ac001b30e7986a8d303b61e1357dfcdad4f6d3";
|
2017-10-20 18:12:01 -07:00
|
|
|
};
|
|
|
|
|
2018-01-12 11:47:40 -08:00
|
|
|
postPatch = ''
|
2019-01-22 07:02:12 -08:00
|
|
|
rm -r tests/__pycache__
|
|
|
|
rm tests/*.pyc
|
2018-01-12 11:47:40 -08:00
|
|
|
'';
|
|
|
|
|
2019-02-16 00:02:30 -08:00
|
|
|
checkInputs = [ pytest pytestrunner pytestcov pytest-flakes pytestpep8 sphinx ];
|
2018-01-12 11:47:40 -08:00
|
|
|
|
2017-10-20 18:12:01 -07:00
|
|
|
checkPhase = ''
|
2019-01-22 07:02:12 -08:00
|
|
|
py.test tests
|
2017-10-20 18:12:01 -07:00
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ six ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Module with some convenient utilities";
|
|
|
|
homepage = "https://github.com/WoLpH/python-utils";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|