diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-07-08 11:28:06 +0200 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2021-07-08 11:28:06 +0200 |
commit | afbc7eb8252c8d04f2263883e66d3cc725282e56 (patch) | |
tree | c331566ef600d060ef3d5fd742c88879e4145de3 /pkgs/development/python-modules/shellingham | |
parent | 505fc54e225719f0cad0bb6d71d1bb7170317a75 (diff) |
python3Packages.shellingham: enable tests
Diffstat (limited to 'pkgs/development/python-modules/shellingham')
-rw-r--r-- | pkgs/development/python-modules/shellingham/default.nix | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/pkgs/development/python-modules/shellingham/default.nix b/pkgs/development/python-modules/shellingham/default.nix index 2bf54f093dca9..1d1a1fc46bdda 100644 --- a/pkgs/development/python-modules/shellingham/default.nix +++ b/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.4.0"; format = "pyproject"; + disabled = pythonOlder "3.4"; - src = fetchPypi { - inherit pname version; - sha256 = "sha256-SFXCRY1pBIKb00wpnxH97tfP77+KLFIuTK6mzXazFx4="; + 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 ]; |