mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 00:24:18 +00:00
36 lines
707 B
Nix
36 lines
707 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytest-mock
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "shellingham";
|
|
version = "1.4.0";
|
|
format = "pyproject";
|
|
disabled = pythonOlder "3.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sarugaku";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "0f686ym3ywjffis5jfqkhsshjgii64060hajysczflhffrjn9jcp";
|
|
};
|
|
|
|
checkInputs = [
|
|
pytest-mock
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "shellingham" ];
|
|
|
|
meta = with lib; {
|
|
description = "Tool to detect the surrounding shell";
|
|
homepage = "https://github.com/sarugaku/shellingham";
|
|
license = licenses.isc;
|
|
maintainers = with maintainers; [ mbode ];
|
|
};
|
|
}
|