1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5, braceexpand 6, inform 7}: 8 9buildPythonPackage rec { 10 pname = "shlib"; 11 version = "1.6"; 12 13 src = fetchFromGitHub { 14 owner = "KenKundert"; 15 repo = "shlib"; 16 rev = "refs/tags/v${version}"; 17 hash = "sha256-f2jJgpjybutCpYnIT+RihtoA1YlXdhTs+MvV8bViSMQ="; 18 }; 19 20 pythonImportsCheck = [ "shlib" ]; 21 postPatch = '' 22 patchShebangs . 23 ''; 24 nativeCheckInputs = [ 25 pytestCheckHook 26 ]; 27 propagatedBuildInputs = [ 28 braceexpand 29 inform 30 ]; 31 32 meta = with lib; { 33 description = "shell library"; 34 homepage = "https://github.com/KenKundert/shlib"; 35 changelog = "https://github.com/KenKundert/shlib/releases/tag/v${version}"; 36 license = licenses.gpl3Plus; 37 maintainers = with maintainers; [ jpetrucciani ]; 38 }; 39}