summary refs log blame commit diff
path: root/pkgs/os-specific/linux/speedometer/default.nix
blob: 2801334688b0e6107bfe57dae657be6af5e4976b (plain) (tree)
1
2
3
4
5
6
7
8
                                  

                                           
                        


                  
                                                                         











                                                                                                                    
                                                 




                                               
{ lib, fetchurl, pythonPackages }:

pythonPackages.buildPythonApplication rec {
  pname = "speedometer";
  version = "2.8";

  src = fetchurl {
    url = "https://excess.org/speedometer/speedometer-${version}.tar.gz";
    sha256 = "060bikv3gwr203jbdmvawsfhc0yq0bg1m42dk8czx1nqvwvgv6fm";
  };

  propagatedBuildInputs = [ pythonPackages.urwid ];

  postPatch = ''
    sed -i "/'entry_points': {/d" setup.py
    sed -i "/'console_scripts': \['speedometer = speedometer:console'\],},/d" setup.py
  '';

  meta = with lib; {
    description = "Measure and display the rate of data across a network connection or data being stored in a file";
    homepage = "https://excess.org/speedometer/";
    license = licenses.lgpl21Plus;
    platforms = platforms.linux;
    maintainers = with maintainers; [ Baughn ];
  };
}