2022-02-14 13:38:36 +01:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildPythonApplication
|
|
|
|
, pexpect
|
|
|
|
, pyyaml
|
|
|
|
, openssh
|
|
|
|
, nixosTests
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
2021-11-25 17:57:45 +01:00
|
|
|
|
2021-11-23 22:32:31 +01:00
|
|
|
buildPythonApplication rec{
|
|
|
|
pname = "xxh";
|
2022-04-05 17:15:26 +02:00
|
|
|
version = "0.8.10";
|
2022-02-14 13:38:36 +01:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2021-11-25 17:57:45 +01:00
|
|
|
|
2021-11-23 22:32:31 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-04-05 17:15:26 +02:00
|
|
|
hash = "sha256-2RMzgIAhM//XReCFBGlTlXn9j4WQiM/k2pLxP2iPUy8=";
|
2021-11-23 22:32:31 +01:00
|
|
|
};
|
2021-11-25 17:57:45 +01:00
|
|
|
|
2022-02-14 13:38:36 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
pexpect
|
|
|
|
pyyaml
|
|
|
|
openssh
|
|
|
|
];
|
2021-11-25 17:57:45 +01:00
|
|
|
|
2022-01-01 22:16:13 +01:00
|
|
|
passthru.tests = {
|
|
|
|
inherit (nixosTests) xxh;
|
|
|
|
};
|
|
|
|
|
2021-11-23 22:32:31 +01:00
|
|
|
meta = with lib; {
|
2022-02-14 13:38:36 +01:00
|
|
|
description = "Bring your favorite shell wherever you go through SSH";
|
2021-11-23 22:32:31 +01:00
|
|
|
homepage = "https://github.com/xxh/xxh";
|
|
|
|
license = licenses.bsd2;
|
2022-02-14 13:38:36 +01:00
|
|
|
maintainers = with maintainers; [ pasqui23 ];
|
2021-11-23 22:32:31 +01:00
|
|
|
};
|
|
|
|
}
|