depot/third_party/nixpkgs/pkgs/development/python-modules/shlib/default.nix
Default email 6d4aeb4377 Project import generated by Copybara.
GitOrigin-RevId: 0f213d0fee84280d8c3a97f7469b988d6fe5fcdf
2023-01-11 08:51:40 +01:00

39 lines
792 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, braceexpand
, inform
}:
buildPythonPackage rec {
pname = "shlib";
version = "1.5";
src = fetchFromGitHub {
owner = "KenKundert";
repo = "shlib";
rev = "v${version}";
sha256 = "sha256-2fwRxa64QXKJuhYwt9Z4BxhTeq1iwbd/IznfxPUjeSM=";
};
pythonImportsCheck = [ "shlib" ];
postPatch = ''
patchShebangs .
'';
checkInputs = [
pytestCheckHook
];
propagatedBuildInputs = [
braceexpand
inform
];
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 ];
};
}