Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / thelogrus / default.nix
blob1dc3f301dfea1d810b6369da93b30e793e6cba6e
1 { lib
2 , buildPythonPackage
3 , dateutils
4 , fetchFromGitHub
5 , poetry-core
6 , pyaml
7 , pythonOlder
8 }:
10 buildPythonPackage rec {
11   pname = "thelogrus";
12   version = "0.7.0";
13   pyproject = true;
15   disabled = pythonOlder "3.7";
17   src = fetchFromGitHub {
18     owner = "unixorn";
19     repo = "thelogrus";
20     rev = "refs/tags/v${version}";
21     hash = "sha256-96/EjDh5XcTsfUcTnsltsT6LMYbyKuM/eNyeq2Pukfo=";
22   };
24   nativeBuildInputs = [
25     poetry-core
26   ];
28   propagatedBuildInputs = [
29     dateutils
30     pyaml
31   ];
33   # Module has no unit tests
34   doCheck = false;
36   pythonImportsCheck = [
37     "thelogrus"
38   ];
40   meta = with lib; {
41     description = "Python 3 version of logrus";
42     homepage = "https://github.com/unixorn/thelogrus";
43     changelog = "https://github.com/unixorn/thelogrus/blob/${version}/ChangeLog.md";
44     license = licenses.asl20;
45     maintainers = with maintainers; [ fab ];
46   };