depot/third_party/nixpkgs/pkgs/development/python-modules/jaraco_logging/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

29 lines
690 B
Nix

{ lib, buildPythonPackage, fetchPypi, setuptools_scm
, tempora, six, pytest
}:
buildPythonPackage rec {
pname = "jaraco.logging";
version = "2.0";
src = fetchPypi {
inherit pname version;
sha256 = "1lb846j7qs1hgqwkyifv51nhl3f8jimbc4lk8yn9nkaynw0vyzcg";
};
patches = [ ./0001-Don-t-run-flake8-checks-during-the-build.patch ];
buildInputs = [ setuptools_scm ];
propagatedBuildInputs = [ tempora six ];
checkInputs = [ pytest ];
checkPhase = ''
PYTHONPATH=".:$PYTHONPATH" pytest
'';
meta = with lib; {
description = "Support for Python logging facility";
homepage = "https://github.com/jaraco/jaraco.logging";
license = licenses.mit;
};
}