Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / shellingham / default.nix
blobee368852422a719153d5a679be49d536b668ef3e
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.1";
13   format = "pyproject";
15   disabled = pythonOlder "3.7";
17   src = fetchFromGitHub {
18     owner = "sarugaku";
19     repo = pname;
20     rev = "refs/tags/${version}";
21     hash = "sha256-7hMlKw9oSGp57FQmbxdAgUsm5cFRr1oTW1ymJyYsgOg=";
22   };
24   nativeBuildInputs = [
25     setuptools
26   ];
28   nativeCheckInputs = [
29     pytest-mock
30     pytestCheckHook
31   ];
33   pythonImportsCheck = [
34     "shellingham"
35   ];
37   meta = with lib; {
38     description = "Tool to detect the surrounding shell";
39     homepage = "https://github.com/sarugaku/shellingham";
40     changelog = "https://github.com/sarugaku/shellingham/blob/${version}/CHANGELOG.rst";
41     license = licenses.isc;
42     maintainers = with maintainers; [ mbode ];
43   };