ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / shellingham / default.nix
blob341d3f3c32e3f8678438156751a5866ac24bd772
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , setuptools
5 , pytest-mock
6 , pytestCheckHook
7 , pythonOlder
8 }:
10 buildPythonPackage rec {
11   pname = "shellingham";
12   version = "1.5.0";
13   format = "pyproject";
14   disabled = pythonOlder "3.7";
16   src = fetchFromGitHub {
17     owner = "sarugaku";
18     repo = pname;
19     rev = "refs/tags/${version}";
20     hash = "sha256-CIO5mBFph+5cO7U4NRjMRtQCTbopJDEGlAGBkxjieFw=";
21   };
23   nativeBuildInputs = [
24     setuptools
25   ];
27   checkInputs = [
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     license = licenses.isc;
38     maintainers = with maintainers; [ mbode ];
39   };