diff options
author | Michael Weiss <dev.primeos@gmail.com> | 2018-09-29 11:36:59 +0200 |
---|---|---|
committer | Michael Weiss <dev.primeos@gmail.com> | 2018-09-29 11:38:12 +0200 |
commit | a108b8617b78aa1a96504f08940a7667928378b1 (patch) | |
tree | 466ca744df4c2599033d5332e09ac4ca536f60d1 /pkgs/development/python-modules | |
parent | c0706bf32e8d57d22865eb4d5e742a3233332957 (diff) | |
download | nixpkgs-a108b8617b78aa1a96504f08940a7667928378b1.tar nixpkgs-a108b8617b78aa1a96504f08940a7667928378b1.tar.gz nixpkgs-a108b8617b78aa1a96504f08940a7667928378b1.tar.bz2 nixpkgs-a108b8617b78aa1a96504f08940a7667928378b1.tar.lz nixpkgs-a108b8617b78aa1a96504f08940a7667928378b1.tar.xz nixpkgs-a108b8617b78aa1a96504f08940a7667928378b1.tar.zst nixpkgs-a108b8617b78aa1a96504f08940a7667928378b1.zip |
pythonPackages.glances: 3.0.1 -> 3.0.2
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r-- | pkgs/development/python-modules/glances/default.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/glances/default.nix b/pkgs/development/python-modules/glances/default.nix new file mode 100644 index 00000000000..3b0f61c3623 --- /dev/null +++ b/pkgs/development/python-modules/glances/default.nix @@ -0,0 +1,35 @@ +{ buildPythonPackage, fetchFromGitHub, isPyPy, lib +, psutil, setuptools, bottle, batinfo, pysnmp +, hddtemp +, unittest2 +}: + +buildPythonPackage rec { + name = "glances-${version}"; + version = "3.0.2"; + disabled = isPyPy; + + src = fetchFromGitHub { + owner = "nicolargo"; + repo = "glances"; + rev = "v${version}"; + sha256 = "1jkjblfk4gbr00j7lny7ajiizzqnp0p1yhzfi14074gwk38z0q14"; + }; + + # Requires access to /sys/class/power_supply + doCheck = false; + + buildInputs = [ unittest2 ]; + propagatedBuildInputs = [ psutil setuptools bottle batinfo pysnmp hddtemp ]; + + preConfigure = '' + sed -i 's/data_files\.append((conf_path/data_files.append(("etc\/glances"/' setup.py; + ''; + + meta = with lib; { + homepage = https://nicolargo.github.io/glances/; + description = "Cross-platform curses-based monitoring tool"; + license = licenses.lgpl3; + maintainers = with maintainers; [ primeos koral ]; + }; +} |