git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #19357 from NeQuissimus/httpstat

httpstat: init at 1.2.0

commit5275d07fea6ea4f122a982f774226db562576248 authorJörg Thalheim <joerg@higgsboson.tk> dateSun 9 Oct 2016, 11:28 (10 years ago) parent7a6e28326f75f7
2 files changed+33
pkgs/tools/networking/httpstat/default.nix+31 pkgs/top-level/all-packages.nix+2
pkgs/tools/networking/httpstat/default.nixnew file+31
@@ -0,0 +1,31 @@
1+{ stdenv, fetchFromGitHub, curl, python, pythonPackages, ... }:
2+
3+pythonPackages.buildPythonPackage rec {
4+ name = "${pname}-${version}";
5+ pname = "httpstat";
6+ version = "1.2.0";
7+ src = fetchFromGitHub {
8+ owner = "reorx";
9+ repo = pname;
10+ rev = "${version}";
11+ sha256 = "1zfbv3fz3g3wwvsgrcyrk2cp7pjhkpf7lmx57ry9b43c62gcd7yh";
12+ };
13+ doCheck = false;
14+ propagatedBuildInputs = [ ];
15+ runtimeDeps = [ curl ];
16+
17+ installPhase = ''
18+ mkdir -p $out/${python.sitePackages}/
19+ cp httpstat.py $out/${python.sitePackages}/
20+ mkdir -p $out/bin
21+ ln -s $out/${python.sitePackages}/httpstat.py $out/bin/httpstat
22+ chmod +x $out/bin/httpstat
23+ '';
24+
25+ meta = {
26+ description = "curl statistics made simple";
27+ homepage = https://github.com/reorx/httpstat;
28+ license = stdenv.lib.licenses.mit;
29+ maintainers = with stdenv.lib.maintainers; [ nequissimus ];
30+ };
31+ }
pkgs/top-level/all-packages.nix+2
@@ -2095,6 +2095,8 @@ in
20952095
20962096 httpfs2 = callPackage ../tools/filesystems/httpfs { };
20972097
2098+ httpstat = callPackage ../tools/networking/httpstat { };
2099+
20982100 httptunnel = callPackage ../tools/networking/httptunnel { };
20992101
21002102 hubicfuse = callPackage ../tools/filesystems/hubicfuse { };