20 buildPythonPackage rec {
21 pname = "rainbowstream";
23 format = "setuptools";
25 src = fetchFromGitHub {
28 # Request for tagging, https://github.com/orakaro/rainbowstream/issues/314
29 rev = "96141fac10675e0775d703f65a59c4477a48c57e";
30 sha256 = "0j0qcc428lk9b3l0cr2j418gd6wd5k4160ham2zn2mmdmxn5bldg";
40 propagatedBuildInputs = [
51 patches = [ ./image.patch ];
54 clib=$out/${python.sitePackages}/rainbowstream/image.so
55 substituteInPlace rainbowstream/c_image.py \
56 --replace @CLIB@ $clib
57 sed -i 's/requests.*"/requests"/' setup.py
60 LC_ALL = "en_US.UTF-8";
64 cc -fPIC -shared -o $clib rainbowstream/image.c
65 for prog in "$out/bin/"*; do
67 --prefix PYTHONPATH : "$PYTHONPATH"
71 # Project has no tests
74 pythonImportsCheck = [ "rainbowstream" ];
77 description = "Streaming command-line twitter client";
78 mainProgram = "rainbowstream";
79 homepage = "https://github.com/orakaro/rainbowstream";
80 license = licenses.mit;
81 maintainers = with maintainers; [ thoughtpolice ];