Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 gettext, 6 mock, 7 pytestCheckHook, 8 setuptools-scm, 9}: 10 11buildPythonPackage rec { 12 pname = "bagit"; 13 version = "1.8.1"; 14 format = "setuptools"; 15 16 src = fetchFromGitHub { 17 owner = "LibraryOfCongress"; 18 repo = "bagit-python"; 19 rev = "v${version}"; 20 hash = "sha256-t01P7MPWgOrktuW2zF0TIzt6u/jkLmrpD2OnqawhJaI="; 21 }; 22 23 nativeBuildInputs = [ 24 gettext 25 setuptools-scm 26 ]; 27 28 nativeCheckInputs = [ 29 mock 30 pytestCheckHook 31 ]; 32 pytestFlagsArray = [ "test.py" ]; 33 pythonImportsCheck = [ "bagit" ]; 34 35 meta = with lib; { 36 description = "Python library and command line utility for working with BagIt style packages"; 37 mainProgram = "bagit.py"; 38 homepage = "https://libraryofcongress.github.io/bagit-python/"; 39 license = with licenses; [ publicDomain ]; 40 maintainers = with maintainers; [ veprbl ]; 41 }; 42}