Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / thelogrus / default.nix
blob62011023516ddf5b2ef21ce5aed271e27aed985c
1 { lib
2 , buildPythonPackage
3 , dateutils
4 , fetchFromGitHub
5 , poetry-core
6 , pyaml
7 , pythonOlder
8 , pythonRelaxDepsHook
9 }:
11 buildPythonPackage rec {
12   pname = "thelogrus";
13   version = "0.7.0";
14   pyproject = true;
16   disabled = pythonOlder "3.7";
18   src = fetchFromGitHub {
19     owner = "unixorn";
20     repo = "thelogrus";
21     rev = "refs/tags/v${version}";
22     hash = "sha256-96/EjDh5XcTsfUcTnsltsT6LMYbyKuM/eNyeq2Pukfo=";
23   };
25   nativeBuildInputs = [
26     poetry-core
27     pythonRelaxDepsHook
28   ];
30   pythonRelaxDeps = [
31     "pyaml"
32   ];
34   propagatedBuildInputs = [
35     dateutils
36     pyaml
37   ];
39   # Module has no unit tests
40   doCheck = false;
42   pythonImportsCheck = [
43     "thelogrus"
44   ];
46   meta = with lib; {
47     description = "Python 3 version of logrus";
48     mainProgram = "human-time";
49     homepage = "https://github.com/unixorn/thelogrus";
50     changelog = "https://github.com/unixorn/thelogrus/blob/${version}/ChangeLog.md";
51     license = licenses.asl20;
52     maintainers = with maintainers; [ fab ];
53   };