python312Packages.dash-renderer: remove (#369714)
[NixPkgs.git] / pkgs / development / python-modules / shellingham / default.nix
blobf457ea4c3146701016180d1398655a0249f9c782
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   setuptools,
6   pytest-mock,
7   pytestCheckHook,
8   pythonOlder,
9 }:
11 buildPythonPackage rec {
12   pname = "shellingham";
13   version = "1.5.4";
14   format = "pyproject";
16   disabled = pythonOlder "3.7";
18   src = fetchFromGitHub {
19     owner = "sarugaku";
20     repo = pname;
21     tag = version;
22     hash = "sha256-xeBo3Ok+XPrHN4nQd7M8/11leSV/8z1f7Sj33+HFVtQ=";
23   };
25   nativeBuildInputs = [ setuptools ];
27   nativeCheckInputs = [
28     pytest-mock
29     pytestCheckHook
30   ];
32   pythonImportsCheck = [ "shellingham" ];
34   meta = with lib; {
35     description = "Tool to detect the surrounding shell";
36     homepage = "https://github.com/sarugaku/shellingham";
37     changelog = "https://github.com/sarugaku/shellingham/blob/${version}/CHANGELOG.rst";
38     license = licenses.isc;
39     maintainers = with maintainers; [ mbode ];
40   };