httpstat: fix it
This commit is contained in:
parent
ec6f049c09
commit
727fcd3d2b
@ -1,6 +1,6 @@
|
|||||||
{ stdenv, fetchFromGitHub, curl, python, pythonPackages, ... }:
|
{ stdenv, fetchFromGitHub, curl, pythonPackages, glibcLocales }:
|
||||||
|
|
||||||
pythonPackages.buildPythonPackage rec {
|
pythonPackages.buildPythonApplication rec {
|
||||||
name = "${pname}-${version}";
|
name = "${pname}-${version}";
|
||||||
pname = "httpstat";
|
pname = "httpstat";
|
||||||
version = "1.2.0";
|
version = "1.2.0";
|
||||||
@ -10,17 +10,11 @@ pythonPackages.buildPythonPackage rec {
|
|||||||
rev = "${version}";
|
rev = "${version}";
|
||||||
sha256 = "1zfbv3fz3g3wwvsgrcyrk2cp7pjhkpf7lmx57ry9b43c62gcd7yh";
|
sha256 = "1zfbv3fz3g3wwvsgrcyrk2cp7pjhkpf7lmx57ry9b43c62gcd7yh";
|
||||||
};
|
};
|
||||||
doCheck = false;
|
doCheck = false; # No tests
|
||||||
propagatedBuildInputs = [ ];
|
buildInputs = [ glibcLocales ];
|
||||||
runtimeDeps = [ curl ];
|
runtimeDeps = [ curl ];
|
||||||
|
|
||||||
installPhase = ''
|
LC_ALL = "en_US.UTF-8";
|
||||||
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 = {
|
meta = {
|
||||||
description = "curl statistics made simple";
|
description = "curl statistics made simple";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user