at master 1.2 kB view raw
1{ 2 lib, 3 fetchFromGitHub, 4 buildPythonPackage, 5 setuptools, 6 distutils, 7 redis, 8 unittestCheckHook, 9}: 10 11buildPythonPackage rec { 12 pname = "rdbtools"; 13 version = "0.1.15"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "sripathikrishnan"; 18 repo = "redis-rdb-tools"; 19 tag = "rdbtools-${version}"; 20 hash = "sha256-6Ht8NuyvzbS7+MeJoVC/AtlXgKwtWwUQ+n5v+mtv/2g="; 21 }; 22 23 patches = [ 24 # https://github.com/sripathikrishnan/redis-rdb-tools/pull/205 25 ./0001-parser_tests-replace-self.assert_-with-specific-asse.patch 26 ./0002-tests-self.assertEquals-self.assertEqual.patch 27 28 # These seem to be broken 29 ./0001-callback_tests-skip-test_all_dumps.patch 30 ]; 31 32 build-system = [ 33 setuptools 34 ]; 35 36 dependencies = [ 37 distutils 38 redis 39 ]; 40 41 nativeCheckInputs = [ 42 unittestCheckHook 43 ]; 44 45 pythonImportsCheck = [ "rdbtools" ]; 46 47 meta = { 48 description = "Parse Redis dump.rdb files, Analyze Memory, and Export Data to JSON"; 49 homepage = "https://github.com/sripathikrishnan/redis-rdb-tools"; 50 changelog = "https://github.com/sripathikrishnan/redis-rdb-tools/blob/rdbtools-${version}/CHANGES"; 51 license = lib.licenses.mit; 52 maintainers = with lib.maintainers; [ offline ]; 53 }; 54}