1{ lib, buildPythonPackage, fetchFromGitHub, isPy3k, pytest }:
2
3buildPythonPackage rec {
4 pname = "pastel";
5 version = "0.1.0";
6
7 # No tests in PyPi tarball
8 src = fetchFromGitHub {
9 owner = "sdispater";
10 repo = "pastel";
11 rev = version;
12 sha256 = "1b4ag7jr7j0sxly5g29imdq8g0d4ixhbck55dblr45mlsidydx0s";
13 };
14
15 checkInputs = [ pytest ];
16 checkPhase = ''
17 pytest tests -sq
18 '';
19
20 meta = with lib; {
21 homepage = https://github.com/sdispater/pastel;
22 description = "Bring colors to your terminal";
23 license = licenses.mit;
24 maintainers = with maintainers; [ jakewaksbaum ];
25 };
26}