1{ 2 buildPythonPackage, 3 lib, 4 fetchFromGitHub, 5 isPy27, 6 setuptools, 7 pytestCheckHook, 8}: 9 10buildPythonPackage rec { 11 pname = "tokenize-rt"; 12 version = "6.1.0"; 13 pyproject = true; 14 15 disabled = isPy27; 16 17 src = fetchFromGitHub { 18 owner = "asottile"; 19 repo = "tokenize-rt"; 20 rev = "v${version}"; 21 hash = "sha256-7ykczY73KkqR99tYLL/5bgr9bqU444qHs2ONz+ldVyg="; 22 }; 23 24 nativeBuildInputs = [ setuptools ]; 25 26 nativeCheckInputs = [ pytestCheckHook ]; 27 28 meta = with lib; { 29 description = "Wrapper around the stdlib `tokenize` which roundtrips"; 30 mainProgram = "tokenize-rt"; 31 homepage = "https://github.com/asottile/tokenize-rt"; 32 license = licenses.mit; 33 maintainers = with maintainers; [ lovesegfault ]; 34 }; 35}