summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/shellingham/default.nix
blob: 3b1694e7d02fa553dea5f0eabfd86524147df24f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  pytest-mock,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "shellingham";
  version = "1.5.4";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "sarugaku";
    repo = "shellingham";
    tag = version;
    hash = "sha256-xeBo3Ok+XPrHN4nQd7M8/11leSV/8z1f7Sj33+HFVtQ=";
  };

  nativeBuildInputs = [ setuptools ];

  nativeCheckInputs = [
    pytest-mock
    pytestCheckHook
  ];

  pythonImportsCheck = [ "shellingham" ];

  meta = {
    description = "Tool to detect the surrounding shell";
    homepage = "https://github.com/sarugaku/shellingham";
    changelog = "https://github.com/sarugaku/shellingham/blob/${version}/CHANGELOG.rst";
    license = lib.licenses.isc;
    maintainers = with lib.maintainers; [ mbode ];
  };
}