blob: 78f53a34617321e04c1490225d759b91437065b7 (
plain)
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
38
39
40
41
42
43
44
45
46
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
gettext,
mock,
pytestCheckHook,
setuptools,
setuptools-scm,
}:
buildPythonPackage rec {
pname = "bagit";
version = "1.9.0";
pyproject = true;
build-system = [
setuptools
setuptools-scm
];
src = fetchFromGitHub {
owner = "LibraryOfCongress";
repo = "bagit-python";
tag = "v${version}";
hash = "sha256-gHilCG07BXL28vBOaqvKhEQw+9l/AkzZRQxucBTEDos=";
};
nativeBuildInputs = [
gettext
];
nativeCheckInputs = [
mock
pytestCheckHook
];
enabledTestPaths = [ "test.py" ];
pythonImportsCheck = [ "bagit" ];
meta = {
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 lib.licenses; [ publicDomain ];
maintainers = with lib.maintainers; [ veprbl ];
};
}
|