about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/shlib/default.nix
blob: 81ffccead0e441d14f55bc515a1a3b4b214e29da (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{ lib
, buildPythonPackage
, fetchFromGitHub
, flit-core
, pytestCheckHook
, braceexpand
, inform
}:

buildPythonPackage rec {
  pname = "shlib";
  version = "1.6";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "KenKundert";
    repo = "shlib";
    rev = "refs/tags/v${version}";
    hash = "sha256-f2jJgpjybutCpYnIT+RihtoA1YlXdhTs+MvV8bViSMQ=";
  };

  postPatch = ''
    patchShebangs .
  '';

  build-system = [
    flit-core
  ];

  dependencies = [
    braceexpand
    inform
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [ "shlib" ];

  meta = with lib; {
    description = "shell library";
    homepage = "https://github.com/KenKundert/shlib";
    changelog = "https://github.com/KenKundert/shlib/releases/tag/v${version}";
    license = licenses.gpl3Plus;
    maintainers = with maintainers; [ jpetrucciani ];
  };
}