about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/bagit/default.nix
blob: 0a07c39482db3613d688e04842a35fb0cc9f11f9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{ 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";
    homepage = "https://libraryofcongress.github.io/bagit-python/";
    license = with licenses; [ publicDomain ];
    maintainers = with maintainers; [ veprbl ];
  };
}