1{ lib 2, buildPythonPackage 3, fetchgit 4, pythonOlder 5, pytestCheckHook 6, indexed-bzip2 7, indexed-gzip 8, indexed-zstd 9, python-xz 10, rapidgzip 11, rarfile 12, zstandard # Python bindings 13, zstd # System tool 14}: 15 16buildPythonPackage rec { 17 pname = "ratarmountcore"; 18 version = "0.6.0"; 19 20 disabled = pythonOlder "3.6"; 21 22 src = fetchgit { 23 url = "https://github.com/mxmlnkn/ratarmount"; 24 # The revision is hardcoded for now to fix problems with the tests, which are not worthy of a new release 25 # tag because releases do not officially contain tests. On the next release, use the commented revision, 26 # which points to a release tag, instead. 27 #rev = "core-v${version}"; 28 rev = "ea43572dfbac4770a27ef2169f72ff73ee4a4ae9"; 29 hash = "sha256-sPApM5OW+UbujFXHSL4ptMaegajz7FNtXz/KftTlw+U="; 30 fetchSubmodules = true; 31 }; 32 33 sourceRoot = "${src.name}/core"; 34 35 propagatedBuildInputs = [ indexed-gzip indexed-bzip2 indexed-zstd python-xz rapidgzip rarfile ]; 36 37 pythonImportsCheck = [ "ratarmountcore" ]; 38 39 nativeCheckInputs = [ pytestCheckHook zstandard zstd ]; 40 41 meta = with lib; { 42 description = "Library for accessing archives by way of indexing"; 43 homepage = "https://github.com/mxmlnkn/ratarmount/tree/master/core"; 44 license = licenses.mit; 45 maintainers = with lib.maintainers; [ mxmlnkn ]; 46 platforms = platforms.all; 47 }; 48}