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