depot/third_party/nixpkgs/pkgs/development/python-modules/shlib/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

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 ];
};
}