nixpkgs-suyu/pkgs/development/python-modules/bagit/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

38 lines
867 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, 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;
nativeCheckInputs = [
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 ];
};
}