diff options
author | Tim Steinbach <tim@nequissimus.com> | 2016-10-08 13:19:07 +0000 |
---|---|---|
committer | Tim Steinbach <tim@nequissimus.com> | 2016-10-08 18:48:04 -0400 |
commit | 26f75f7d3194b8ef237268ae7488bd71ff8154fe (patch) | |
tree | 24519ff2c78ff8fa14ddedf97b918693c486a592 /pkgs/tools/networking | |
parent | afbe339e7d2187777242c49e0ce5b740927b4213 (diff) | |
download | nixlib-26f75f7d3194b8ef237268ae7488bd71ff8154fe.tar nixlib-26f75f7d3194b8ef237268ae7488bd71ff8154fe.tar.gz nixlib-26f75f7d3194b8ef237268ae7488bd71ff8154fe.tar.bz2 nixlib-26f75f7d3194b8ef237268ae7488bd71ff8154fe.tar.lz nixlib-26f75f7d3194b8ef237268ae7488bd71ff8154fe.tar.xz nixlib-26f75f7d3194b8ef237268ae7488bd71ff8154fe.tar.zst nixlib-26f75f7d3194b8ef237268ae7488bd71ff8154fe.zip |
httpstat: init at 1.2.0
Diffstat (limited to 'pkgs/tools/networking')
-rw-r--r-- | pkgs/tools/networking/httpstat/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/tools/networking/httpstat/default.nix b/pkgs/tools/networking/httpstat/default.nix new file mode 100644 index 000000000000..49f71f448051 --- /dev/null +++ b/pkgs/tools/networking/httpstat/default.nix @@ -0,0 +1,31 @@ +{ stdenv, fetchFromGitHub, curl, python, pythonPackages, ... }: + +pythonPackages.buildPythonPackage rec { + name = "${pname}-${version}"; + pname = "httpstat"; + version = "1.2.0"; + src = fetchFromGitHub { + owner = "reorx"; + repo = pname; + rev = "${version}"; + sha256 = "1zfbv3fz3g3wwvsgrcyrk2cp7pjhkpf7lmx57ry9b43c62gcd7yh"; + }; + doCheck = false; + propagatedBuildInputs = [ ]; + runtimeDeps = [ curl ]; + + installPhase = '' + mkdir -p $out/${python.sitePackages}/ + cp httpstat.py $out/${python.sitePackages}/ + mkdir -p $out/bin + ln -s $out/${python.sitePackages}/httpstat.py $out/bin/httpstat + chmod +x $out/bin/httpstat + ''; + + meta = { + description = "curl statistics made simple"; + homepage = https://github.com/reorx/httpstat; + license = stdenv.lib.licenses.mit; + maintainers = with stdenv.lib.maintainers; [ nequissimus ]; + }; + } |