python3Packages.shellingham: enable tests
This commit is contained in:
parent
505fc54e22
commit
afbc7eb825
1 changed files with 20 additions and 5 deletions
|
@ -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 ];
|
||||
|
|
Loading…
Reference in a new issue