2021-07-14 22:03:04 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytest-mock
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "shellingham";
|
2021-07-14 22:03:04 +00:00
|
|
|
version = "1.4.0";
|
2020-06-18 07:06:33 +00:00
|
|
|
format = "pyproject";
|
2021-07-14 22:03:04 +00:00
|
|
|
disabled = pythonOlder "3.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-07-14 22:03:04 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sarugaku";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "0f686ym3ywjffis5jfqkhsshjgii64060hajysczflhffrjn9jcp";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-07-14 22:03:04 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytest-mock
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "shellingham" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-07-14 22:03:04 +00:00
|
|
|
description = "Tool to detect the surrounding shell";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/sarugaku/shellingham";
|
|
|
|
license = licenses.isc;
|
|
|
|
maintainers = with maintainers; [ mbode ];
|
|
|
|
};
|
|
|
|
}
|