depot/third_party/nixpkgs/pkgs/development/python-modules/shlib/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

40 lines
831 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, braceexpand
, inform
}:
buildPythonPackage rec {
pname = "shlib";
version = "1.6";
format = "setuptools";
src = fetchFromGitHub {
owner = "KenKundert";
repo = "shlib";
rev = "refs/tags/v${version}";
hash = "sha256-f2jJgpjybutCpYnIT+RihtoA1YlXdhTs+MvV8bViSMQ=";
};
pythonImportsCheck = [ "shlib" ];
postPatch = ''
patchShebangs .
'';
nativeCheckInputs = [
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 ];
};
}