1{ 2 buildPythonPackage, 3 lib, 4 fetchFromGitHub, 5 isPy27, 6 setuptools, 7 pytestCheckHook, 8}: 9 10buildPythonPackage rec { 11 pname = "tokenize-rt"; 12 version = "5.2.0"; 13 pyproject = true; 14 15 disabled = isPy27; 16 17 src = fetchFromGitHub { 18 owner = "asottile"; 19 repo = pname; 20 rev = "v${version}"; 21 hash = "sha256-G4Dn6iZLVOovzfEt9eMzp93mTX+bo0tHI5cCbaJLxBQ="; 22 }; 23 24 nativeBuildInputs = [ setuptools ]; 25 26 nativeCheckInputs = [ pytestCheckHook ]; 27 28 meta = with lib; { 29 description = "A 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}