18b0729790
The package currently fails because of some flake8 violations. However invalid coding style shouldn't break the Nix package. See also https://hydra.nixos.org/build/90301692 Addresses #56826
30 lines
688 B
Nix
30 lines
688 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;
|
|
};
|
|
}
|