depot/third_party/nixpkgs/pkgs/development/python-modules/bagit/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

42 lines
896 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
gettext,
mock,
pytestCheckHook,
setuptools-scm,
}:
buildPythonPackage rec {
pname = "bagit";
version = "1.8.1";
format = "setuptools";
src = fetchFromGitHub {
owner = "LibraryOfCongress";
repo = "bagit-python";
rev = "v${version}";
hash = "sha256-t01P7MPWgOrktuW2zF0TIzt6u/jkLmrpD2OnqawhJaI=";
};
nativeBuildInputs = [
gettext
setuptools-scm
];
nativeCheckInputs = [
mock
pytestCheckHook
];
pytestFlagsArray = [ "test.py" ];
pythonImportsCheck = [ "bagit" ];
meta = with lib; {
description = "Python library and command line utility for working with BagIt style packages";
mainProgram = "bagit.py";
homepage = "https://libraryofcongress.github.io/bagit-python/";
license = with licenses; [ publicDomain ];
maintainers = with maintainers; [ veprbl ];
};
}