nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ buildPythonPackage
2, fetchFromGitHub
3, lib
4, poetry-core
5, termcolor
6}:
7
8buildPythonPackage rec {
9 pname = "yaspin";
10 version = "2.1.0";
11 format = "pyproject";
12
13 src = fetchFromGitHub {
14 owner = "pavdmyt";
15 repo = pname;
16 rev = "v${version}";
17 sha256 = "0vhh4mp706kz5fba8nvr9jm51jsd32xj97m3law6ixw3lj91sh1a";
18 };
19
20 nativeBuildInputs = [ poetry-core ];
21
22 propagatedBuildInputs = [ termcolor ];
23
24 pythonImportsCheck = [ "yaspin" ];
25
26 meta = with lib; {
27 description = "Yet Another Terminal Spinner";
28 homepage = "https://github.com/pavdmyt/yaspin";
29 license = licenses.mit;
30 maintainers = with maintainers; [ samuela ];
31 };
32}