2022-02-20 05:27:41 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildPythonApplication
|
|
|
|
, pexpect
|
|
|
|
, pyyaml
|
|
|
|
, openssh
|
|
|
|
, nixosTests
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
2022-02-10 20:34:41 +00:00
|
|
|
|
|
|
|
buildPythonApplication rec{
|
|
|
|
pname = "xxh";
|
2022-09-30 11:47:45 +00:00
|
|
|
version = "0.8.12";
|
2022-02-20 05:27:41 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2022-02-10 20:34:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
2022-09-30 11:47:45 +00:00
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-3/AU2o72X7FE11NSXC6m9fFhmjzEDZ+OpTXg8yvv62A=";
|
2022-02-10 20:34:41 +00:00
|
|
|
};
|
|
|
|
|
2022-02-20 05:27:41 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
pexpect
|
|
|
|
pyyaml
|
|
|
|
openssh
|
|
|
|
];
|
2022-02-10 20:34:41 +00:00
|
|
|
|
|
|
|
passthru.tests = {
|
|
|
|
inherit (nixosTests) xxh;
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with lib; {
|
2022-02-20 05:27:41 +00:00
|
|
|
description = "Bring your favorite shell wherever you go through SSH";
|
2022-02-10 20:34:41 +00:00
|
|
|
homepage = "https://github.com/xxh/xxh";
|
|
|
|
license = licenses.bsd2;
|
2022-02-20 05:27:41 +00:00
|
|
|
maintainers = with maintainers; [ pasqui23 ];
|
2022-02-10 20:34:41 +00:00
|
|
|
};
|
|
|
|
}
|