mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-20 12:42:24 +00:00
Merge pull request #19357 from NeQuissimus/httpstat
httpstat: init at 1.2.0
This commit is contained in:
commit
5275d07fea
31
pkgs/tools/networking/httpstat/default.nix
Normal file
31
pkgs/tools/networking/httpstat/default.nix
Normal file
|
@ -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 ];
|
||||
};
|
||||
}
|
|
@ -2095,6 +2095,8 @@ in
|
|||
|
||||
httpfs2 = callPackage ../tools/filesystems/httpfs { };
|
||||
|
||||
httpstat = callPackage ../tools/networking/httpstat { };
|
||||
|
||||
httptunnel = callPackage ../tools/networking/httptunnel { };
|
||||
|
||||
hubicfuse = callPackage ../tools/filesystems/hubicfuse { };
|
||||
|
|
Loading…
Reference in a new issue