nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 38 lines 815 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 pytest-mock, 7 pytestCheckHook, 8}: 9 10buildPythonPackage rec { 11 pname = "shellingham"; 12 version = "1.5.4"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "sarugaku"; 17 repo = "shellingham"; 18 tag = version; 19 hash = "sha256-xeBo3Ok+XPrHN4nQd7M8/11leSV/8z1f7Sj33+HFVtQ="; 20 }; 21 22 nativeBuildInputs = [ setuptools ]; 23 24 nativeCheckInputs = [ 25 pytest-mock 26 pytestCheckHook 27 ]; 28 29 pythonImportsCheck = [ "shellingham" ]; 30 31 meta = { 32 description = "Tool to detect the surrounding shell"; 33 homepage = "https://github.com/sarugaku/shellingham"; 34 changelog = "https://github.com/sarugaku/shellingham/blob/${version}/CHANGELOG.rst"; 35 license = lib.licenses.isc; 36 maintainers = with lib.maintainers; [ mbode ]; 37 }; 38}