summary refs log tree commit diff
path: root/pkgs/development/python-modules/pastel/default.nix
blob: 532970c62c28f40369d6e69fb2cbff9d627eb2c2 (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
{ lib, buildPythonPackage, fetchFromGitHub, pytest }:

buildPythonPackage rec {
  pname = "pastel";
  version = "0.1.0";

  # No tests in PyPi tarball
  src = fetchFromGitHub {
    owner = "sdispater";
    repo = "pastel";
    rev = version;
    sha256 = "1b4ag7jr7j0sxly5g29imdq8g0d4ixhbck55dblr45mlsidydx0s";
  };

  checkInputs = [ pytest ];
  checkPhase = ''
    pytest tests -sq
  '';

  meta = with lib; {
    homepage = https://github.com/sdispater/pastel;
    description = "Bring colors to your terminal";
    license = licenses.mit;
    maintainers = with maintainers; [ jakewaksbaum ];
  };
}