587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
48 lines
871 B
Nix
48 lines
871 B
Nix
{ 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 ];
|
|
};
|
|
}
|