1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 pythonOlder, 7 pytestCheckHook, 8}: 9 10buildPythonPackage rec { 11 pname = "cashaddress"; 12 version = "1.0.6-unstable-2019-05-15"; 13 pyproject = true; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "oskyk"; 19 repo = "cashaddress"; 20 rev = "0ca44cff6bd3e63a67b494296c0d1eeaf6cc120d"; 21 hash = "sha256-4izWD2KZqy1F7CAgdbe1fpjMlMZC0clrkHKS9IIQuoc="; 22 }; 23 24 nativeBuildInputs = [ setuptools ]; 25 26 nativeCheckInputs = [ pytestCheckHook ]; 27 28 pythonImportsCheck = [ "cashaddress" ]; 29 30 meta = { 31 description = "Python tool for convert bitcoin cash legacy addresses"; 32 homepage = "https://github.com/oskyk/cashaddress"; 33 changelog = "https://github.com/oskyk/cashaddress/releases/tag/${version}"; 34 license = lib.licenses.gpl3Only; 35 maintainers = with lib.maintainers; [ fab ]; 36 }; 37}