1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 flit-core,
6 pytestCheckHook,
7 braceexpand,
8 inform,
9}:
10
11buildPythonPackage rec {
12 pname = "shlib";
13 version = "1.8";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "KenKundert";
18 repo = "shlib";
19 tag = "v${version}";
20 hash = "sha256-0BWTaHKGVKYIPQ9ifVWp2VZkSH3Gg/NgP3gPhkmw5S4=";
21 };
22
23 postPatch = ''
24 patchShebangs .
25 '';
26
27 build-system = [ flit-core ];
28
29 dependencies = [
30 braceexpand
31 inform
32 ];
33
34 nativeCheckInputs = [ pytestCheckHook ];
35
36 pythonImportsCheck = [ "shlib" ];
37
38 meta = with lib; {
39 description = "Shell library";
40 homepage = "https://github.com/KenKundert/shlib";
41 changelog = "https://github.com/KenKundert/shlib/releases/tag/${src.tag}";
42 license = licenses.mit;
43 maintainers = with maintainers; [ jpetrucciani ];
44 };
45}