2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
gettext,
|
|
|
|
mock,
|
|
|
|
pytestCheckHook,
|
|
|
|
setuptools-scm,
|
2021-08-08 23:34:03 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "bagit";
|
|
|
|
version = "1.8.1";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2021-08-08 23:34:03 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "LibraryOfCongress";
|
|
|
|
repo = "bagit-python";
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-t01P7MPWgOrktuW2zF0TIzt6u/jkLmrpD2OnqawhJaI=";
|
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
gettext
|
|
|
|
setuptools-scm
|
|
|
|
];
|
2021-08-08 23:34:03 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-08-08 23:34:03 +00:00
|
|
|
mock
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
pytestFlagsArray = [ "test.py" ];
|
|
|
|
pythonImportsCheck = [ "bagit" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python library and command line utility for working with BagIt style packages";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "bagit.py";
|
2021-08-08 23:34:03 +00:00
|
|
|
homepage = "https://libraryofcongress.github.io/bagit-python/";
|
|
|
|
license = with licenses; [ publicDomain ];
|
|
|
|
maintainers = with maintainers; [ veprbl ];
|
|
|
|
};
|
|
|
|
}
|