2021-07-08 10:28:06 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytest-mock
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2018-09-22 08:41:55 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "shellingham";
|
2021-07-08 10:18:29 +01:00
|
|
|
version = "1.4.0";
|
2020-06-04 19:40:34 +01:00
|
|
|
format = "pyproject";
|
2021-07-08 10:28:06 +01:00
|
|
|
disabled = pythonOlder "3.4";
|
2018-09-22 08:41:55 +01:00
|
|
|
|
2021-07-08 10:28:06 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sarugaku";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "0f686ym3ywjffis5jfqkhsshjgii64060hajysczflhffrjn9jcp";
|
2018-09-22 08:41:55 +01:00
|
|
|
};
|
|
|
|
|
2021-07-08 10:28:06 +01:00
|
|
|
checkInputs = [
|
|
|
|
pytest-mock
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "shellingham" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2021-07-08 10:28:06 +01:00
|
|
|
description = "Tool to detect the surrounding shell";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/sarugaku/shellingham";
|
2018-09-22 08:41:55 +01:00
|
|
|
license = licenses.isc;
|
|
|
|
maintainers = with maintainers; [ mbode ];
|
|
|
|
};
|
|
|
|
}
|