depot/third_party/nixpkgs/pkgs/os-specific/linux/speedometer/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

26 lines
809 B
Nix

{ lib, fetchurl, pythonPackages }:
pythonPackages.buildPythonApplication rec {
pname = "speedometer";
version = "2.8";
src = fetchurl {
url = "http://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 = "http://excess.org/speedometer/";
license = licenses.lgpl21Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ Baughn ];
};
}