mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-25 17:55:21 +00:00
python310Packages.logbook: Normalize attribute, pname, dirname
This commit is contained in:
30
pkgs/development/python-modules/logbook/default.nix
Normal file
30
pkgs/development/python-modules/logbook/default.nix
Normal file
@@ -0,0 +1,30 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, isPy3k, pytest, mock, brotli }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "logbook";
|
||||
version = "1.5.3";
|
||||
|
||||
src = fetchPypi {
|
||||
pname = "Logbook";
|
||||
inherit version;
|
||||
sha256 = "1s1gyfw621vid7qqvhddq6c3z2895ci4lq3g0r1swvpml2nm9x36";
|
||||
};
|
||||
|
||||
nativeCheckInputs = [ 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;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user