Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / shlib / default.nix
blob81ffccead0e441d14f55bc515a1a3b4b214e29da
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , flit-core
5 , pytestCheckHook
6 , braceexpand
7 , inform
8 }:
10 buildPythonPackage rec {
11   pname = "shlib";
12   version = "1.6";
13   pyproject = true;
15   src = fetchFromGitHub {
16     owner = "KenKundert";
17     repo = "shlib";
18     rev = "refs/tags/v${version}";
19     hash = "sha256-f2jJgpjybutCpYnIT+RihtoA1YlXdhTs+MvV8bViSMQ=";
20   };
22   postPatch = ''
23     patchShebangs .
24   '';
26   build-system = [
27     flit-core
28   ];
30   dependencies = [
31     braceexpand
32     inform
33   ];
35   nativeCheckInputs = [
36     pytestCheckHook
37   ];
39   pythonImportsCheck = [ "shlib" ];
41   meta = with lib; {
42     description = "shell library";
43     homepage = "https://github.com/KenKundert/shlib";
44     changelog = "https://github.com/KenKundert/shlib/releases/tag/v${version}";
45     license = licenses.gpl3Plus;
46     maintainers = with maintainers; [ jpetrucciani ];
47   };