mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-19 04:03:56 +00:00
028f7e0e74
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
30 lines
687 B
Nix
30 lines
687 B
Nix
{ lib, buildPythonPackage, fetchPypi, isPy3k, pytest, mock, brotli }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "Logbook";
|
|
version = "1.5.3";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "1s1gyfw621vid7qqvhddq6c3z2895ci4lq3g0r1swvpml2nm9x36";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|