nixpkgs/pkgs/development/python-modules/Logbook/default.nix
R. RyanTM 6f4a235d68 python37Packages.Logbook: 1.4.3 -> 1.5.2
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/python3.7-logbook/versions
2019-09-28 08:07:22 -07:00

30 lines
687 B
Nix

{ lib, buildPythonPackage, fetchPypi, isPy3k, pytest, mock, brotli }:
buildPythonPackage rec {
pname = "Logbook";
version = "1.5.2";
src = fetchPypi {
inherit pname version;
sha256 = "0mvsig6sk4dywpw5naah1npf6h621qzhg0sd427j5znr06a2ksqs";
};
checkInputs = [ pytest ] ++ lib.optionals (!isPy3k) [ mock ];
propagatedBuildInputs = [ brotli ];
checkPhase = ''
find tests -name \*.pyc -delete
py.test tests
'';
# Some of the tests use localhost networking.
__darwinAllowLocalNetworking = true;
meta = {
homepage = https://pythonhosted.org/Logbook/;
description = "A logging replacement for Python";
license = lib.licenses.bsd3;
};
}