diff options
Diffstat (limited to 'pkgs/development/python-modules/bagit/default.nix')
-rw-r--r-- | pkgs/development/python-modules/bagit/default.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/bagit/default.nix b/pkgs/development/python-modules/bagit/default.nix new file mode 100644 index 000000000000..7663cf8cf1a9 --- /dev/null +++ b/pkgs/development/python-modules/bagit/default.nix @@ -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 ]; + }; +} |