about summary refs log tree commit diff
path: root/pkgs/development/python-modules/yaspin/default.nix
blob: 012ee677ae0e0db31d8ddee8f2a2a77594835648 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{ buildPythonPackage
, fetchFromGitHub
, lib
, poetry-core
, termcolor
}:

buildPythonPackage rec {
  pname = "yaspin";
  version = "2.1.0";
  format = "pyproject";

  src = fetchFromGitHub {
    owner = "pavdmyt";
    repo = pname;
    rev = "v${version}";
    sha256 = "0vhh4mp706kz5fba8nvr9jm51jsd32xj97m3law6ixw3lj91sh1a";
  };

  nativeBuildInputs = [ poetry-core ];

  propagatedBuildInputs = [ termcolor ];

  pythonImportsCheck = [ "yaspin" ];

  meta = with lib; {
    description = "Yet Another Terminal Spinner";
    homepage = "https://github.com/pavdmyt/yaspin";
    license = licenses.mit;
    maintainers = with maintainers; [ samuela ];
  };
}