2018-09-12 07:36:31 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPy3k, pytest, mock, brotli }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "Logbook";
|
2018-11-09 04:41:45 +00:00
|
|
|
version = "1.4.1";
|
2018-09-12 07:36:31 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-11-09 04:41:45 +00:00
|
|
|
sha256 = "1nsnz9qdcba85q57qbam6skfvq2k7savn64qdy44cjnh0vkmqdrj";
|
2018-09-12 07:36:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ pytest ] ++ lib.optionals (!isPy3k) [ mock ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ brotli ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
find tests -name \*.pyc -delete
|
|
|
|
py.test tests
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = https://pythonhosted.org/Logbook/;
|
|
|
|
description = "A logging replacement for Python";
|
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|