diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/shellingham/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/shellingham/default.nix | 27 |
1 files changed, 21 insertions, 6 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/shellingham/default.nix b/nixpkgs/pkgs/development/python-modules/shellingham/default.nix index 300368b31f13..1d1a1fc46bdd 100644 --- a/nixpkgs/pkgs/development/python-modules/shellingham/default.nix +++ b/nixpkgs/pkgs/development/python-modules/shellingham/default.nix @@ -1,18 +1,33 @@ -{ lib, buildPythonPackage, fetchPypi +{ lib +, buildPythonPackage +, fetchFromGitHub +, pytest-mock +, pytestCheckHook +, pythonOlder }: buildPythonPackage rec { pname = "shellingham"; - version = "1.3.2"; + version = "1.4.0"; format = "pyproject"; + disabled = pythonOlder "3.4"; - src = fetchPypi { - inherit pname version; - sha256 = "576c1982bea0ba82fb46c36feb951319d7f42214a82634233f58b40d858a751e"; + src = fetchFromGitHub { + owner = "sarugaku"; + repo = pname; + rev = version; + sha256 = "0f686ym3ywjffis5jfqkhsshjgii64060hajysczflhffrjn9jcp"; }; + checkInputs = [ + pytest-mock + pytestCheckHook + ]; + + pythonImportsCheck = [ "shellingham" ]; + meta = with lib; { - description = "Tool to Detect Surrounding Shell"; + description = "Tool to detect the surrounding shell"; homepage = "https://github.com/sarugaku/shellingham"; license = licenses.isc; maintainers = with maintainers; [ mbode ]; |