diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/shellingham/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/shellingham/default.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/shellingham/default.nix b/nixpkgs/pkgs/development/python-modules/shellingham/default.nix new file mode 100644 index 000000000000..1d1a1fc46bdd --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/shellingham/default.nix @@ -0,0 +1,35 @@ +{ 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 ]; + }; +} |