pythonPackages.bagit: init at 1.8.1

This commit is contained in:
Dmitry Kalinkin 2021-07-21 00:47:26 -04:00
parent b06804faf1
commit 088aee7bf0
No known key found for this signature in database
GPG Key ID: 5157B3EC8B2CA333
2 changed files with 41 additions and 0 deletions

View File

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

View File

@ -991,6 +991,8 @@ in {
bacpypes = callPackage ../development/python-modules/bacpypes { };
bagit = callPackage ../development/python-modules/bagit { };
banal = callPackage ../development/python-modules/banal { };
bandit = callPackage ../development/python-modules/bandit { };