1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5}: 6 7buildPythonPackage rec { 8 pname = "base36"; 9 version = "0.1.1"; 10 11 src = fetchFromGitHub { 12 owner = "tonyseek"; 13 repo = "python-base36"; 14 rev = "v${version}"; 15 sha256 = "076nmk9s0zkmgs2zqzkaqij5cmzhf4mrhivbb9n6cvz52i1mppr5"; 16 }; 17 18 postPatch = '' 19 substituteInPlace setup.cfg \ 20 --replace "[pytest]" "[tool:pytest]" \ 21 --replace "--pep8 --cov" "" 22 ''; 23 24 nativeCheckInputs = [ pytestCheckHook ]; 25 26 pytestFlagsArray = [ "test_base36.py" ]; 27 pythonImportsCheck = [ "base36" ]; 28 29 meta = with lib; { 30 description = "Python implementation for the positional numeral system using 36 as the radix"; 31 homepage = "https://github.com/tonyseek/python-base36"; 32 license = with licenses; [ mit ]; 33 maintainers = with maintainers; [ fab ]; 34 }; 35}