nixpkgs/pkgs/development/python-modules/shlib/default.nix
Martin Weinelt 0215034f25 python3.pkgs: Migrate fetchers to use hash
when they already rely on SRI hashes.
2023-03-03 23:59:29 +01:00

40 lines
796 B
Nix

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