9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
44 lines
879 B
Nix
44 lines
879 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, setuptools
|
|
, pytest-mock
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "shellingham";
|
|
version = "1.5.1";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sarugaku";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-7hMlKw9oSGp57FQmbxdAgUsm5cFRr1oTW1ymJyYsgOg=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-mock
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"shellingham"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Tool to detect the surrounding shell";
|
|
homepage = "https://github.com/sarugaku/shellingham";
|
|
changelog = "https://github.com/sarugaku/shellingham/blob/${version}/CHANGELOG.rst";
|
|
license = licenses.isc;
|
|
maintainers = with maintainers; [ mbode ];
|
|
};
|
|
}
|