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