mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 19:15:39 +00:00
6c3558405b
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.6-logbook/versions
27 lines
599 B
Nix
27 lines
599 B
Nix
{ lib, buildPythonPackage, fetchPypi, isPy3k, pytest, mock, brotli }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "Logbook";
|
|
version = "1.4.1";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "1nsnz9qdcba85q57qbam6skfvq2k7savn64qdy44cjnh0vkmqdrj";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|