1{ buildPythonPackage
2, lib
3, fetchFromGitHub
4, isPy27
5, pytestCheckHook
6}:
7
8buildPythonPackage rec {
9 pname = "tokenize-rt";
10 version = "4.2.1";
11 disabled = isPy27;
12
13 src = fetchFromGitHub {
14 owner = "asottile";
15 repo = pname;
16 rev = "v${version}";
17 sha256 = "sha256-YNt4YwkuA3DVq4EjJaIES9V3A6ENa3k6/qVKisjA5Pc=";
18 };
19
20 checkInputs = [ pytestCheckHook ];
21
22 meta = with lib; {
23 description = "A wrapper around the stdlib `tokenize` which roundtrips";
24 homepage = "https://github.com/asottile/tokenize-rt";
25 license = licenses.mit;
26 maintainers = with maintainers; [ lovesegfault ];
27 };
28}