python311Packages.shlib: fix build

This commit is contained in:
Martin Weinelt 2024-03-27 16:04:25 +01:00
parent 6678c6bb08
commit 6510f64259
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -1,6 +1,7 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, flit-core
, pytestCheckHook
, braceexpand
, inform
@ -9,7 +10,7 @@
buildPythonPackage rec {
pname = "shlib";
version = "1.6";
format = "setuptools";
pyproject = true;
src = fetchFromGitHub {
owner = "KenKundert";
@ -18,18 +19,25 @@ buildPythonPackage rec {
hash = "sha256-f2jJgpjybutCpYnIT+RihtoA1YlXdhTs+MvV8bViSMQ=";
};
pythonImportsCheck = [ "shlib" ];
postPatch = ''
patchShebangs .
'';
nativeCheckInputs = [
pytestCheckHook
build-system = [
flit-core
];
propagatedBuildInputs = [
dependencies = [
braceexpand
inform
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "shlib" ];
meta = with lib; {
description = "shell library";
homepage = "https://github.com/KenKundert/shlib";